JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java IDE » NetBeans  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 NetBeans6.0的Tomcat起不來
eluwin





發文: 5
積分: 0
於 2007-12-07 10:45 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我是下載Web & Java EE Pack,並安裝內附的Tomcat 6.0,可是不管怎麼試,
就是無法從NetBeans啟動Tomcat...一開始似乎是JDK跟Tocmat路徑不能有空白
,可是我重安裝,把路徑改過之後,依然無法啟動...不知道有沒有人能解決這個
問題?謝謝!


reply to postreply to post
作者 Re:NetBeans6.0的Tomcat起不來 [Re:eluwin]
koji

秒速5センチメートル

站長

發文: 8415
積分: 19
於 2007-12-07 11:37 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
console錯誤訊息列一下吧
不然怎知道怎麼錯法呢

koji


reply to postreply to post
JCConf Taiwan 2015 開始售票了!!
Facebook上的TWJUG社團,歡迎加入
作者 Re:NetBeans6.0的Tomcat起不來 [Re:eluwin]
eluwin





發文: 5
積分: 0
於 2007-12-11 10:16 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不好意思之前沒說清楚...
原本路徑(包括JDK路徑、Tomcat路徑、以及Catalina_Base路徑)有空白的時候Console的Tomcat 6.0這一頁都是會出現ClassNotFoundException,然後Exception內容就是被空白或"."
截斷的路徑...
之後我把所有路徑的空白跟"."都改成"_"之後,就變成出現下"Java"指令沒加參數時印出的訊息...Sad
完整訊息如下:

Using CATALINA_BASE: C:\Apache_Tomcat_6_0_14\apache-tomcat-6.0.14_base
Using CATALINA_HOME: C:\Apache_Tomcat_6_0_14
Using CATALINA_TMPDIR: C:\Apache_Tomcat_6_0_14\apache-tomcat-6.0.14_base\temp
Using JRE_HOME: C:\Java\jdk1_6_0
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-client   to select the "client" VM
-server   to select the "server" VM
-hotspot   is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image



謝謝!


reply to postreply to post
作者 Re:NetBeans6.0的Tomcat起不來 [Re:eluwin]
koji

秒速5センチメートル

站長

發文: 8415
積分: 19
於 2007-12-11 10:49 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你的os是?
我在xp下jdk1.6 tomcat netbeans都沒動過路徑預設安裝
沒有遇到問題

你不改路徑時出現的錯誤完整訊息呢?

另外你的安裝順序是?像我本來就有jdk,接下來就是直接裝netbeans

koji


reply to postreply to post
JCConf Taiwan 2015 開始售票了!!
Facebook上的TWJUG社團,歡迎加入
作者 Re:NetBeans6.0的Tomcat起不來 [Re:koji]
eluwin





發文: 5
積分: 0
於 2007-12-11 16:05 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我的os也是winxp pro sp2...
我一開始也是jdk1.6裝好才裝NetBeans6.0,可是,我記得NetBeans5.5沒問題的...Sad

不改路徑時的錯誤訊息就是像

java.lang.ClassNotFoundException: and
(因為Catalina_Base在C:\Document and Settings\Administrator\.netbeans\6.0\apache-tomcat-6.0.14_base...)

或是

java.lang.ClassNotFoundException: Files\Apache
(因為Tomcat裝在預設目錄C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14...)

實在是不懂為什麼 ><...


reply to postreply to post
作者 Re:NetBeans6.0的Tomcat起不來 [Re:eluwin]
koji

秒速5センチメートル

站長

發文: 8415
積分: 19
於 2007-12-11 16:19 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
把jdk移掉換成jdk1.6.0_03看看?

除了這個我大概都跟你一樣了

koji


reply to postreply to post
JCConf Taiwan 2015 開始售票了!!
Facebook上的TWJUG社團,歡迎加入
作者 Re:NetBeans6.0的Tomcat起不來 [Re:eluwin]
eluwin





發文: 5
積分: 0
於 2007-12-11 16:54 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
還是一樣...看來我是無緣使用它了
不管怎樣還是謝謝站長的回答哩!


reply to postreply to post
作者 Re:NetBeans6.0的Tomcat起不來 [Re:eluwin]
anthonychen

外線交給我

版主

發文: 2033
積分: 8
於 2007-12-11 20:56 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
eluwin wrote:
還是一樣...看來我是無緣使用它了
不管怎樣還是謝謝站長的回答哩!

也不用急著放棄,先移除 NetBeans 6,然後將 C:\Documents and Settings\你的帳號\.netbeans 這個目錄刪除掉後,再重新安裝一次看看會不會OK。


reply to postreply to post
作者 Re:NetBeans6.0的Tomcat起不來 [Re:eluwin]
jvincent





發文: 23
積分: 1
於 2007-12-12 08:10 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你在環境變量裡面指定Catalina_HOME了嗎?

reply to postreply to post
作者 Re:NetBeans6.0的Tomcat起不來 [Re:jvincent]
eluwin





發文: 5
積分: 0
於 2007-12-14 14:55 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
沒有耶...
完全沒有手動加,我去環境變數看也沒有


reply to postreply to post
作者 Re:NetBeans6.0的Tomcat起不來 [Re:koji]
ousys





發文: 24
積分: 0
於 2007-12-21 15:05 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我安装这个东西的时候基本上都是default 安装,而且我安装netbeans 是安装的那个包含全部的。。
然后我去下载了tomcat 6.0.安装 到了一个folder下面,指定好Catalina_Home ,开始也是不能够运行,问题是因为netbeans得利用tomcat 的startup.bat和shutdown.bat, 然后我又去下载了一个tomcat6.0zip unzip 到了一个folder 下,这里我除了在netbeans中指定Catalina_Home外什么环境都没有配置,结果就ok 了。。。


reply to postreply to post
閑看庭前花開花落,靜觀遠處云卷云舒
» JWorld@TW »  Java IDE » NetBeans

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8