无法启动NetBeans 6.9.1 IDE的可移植版本

时间:2011-03-01 15:21:47

标签: netbeans netbeans-6.9 portable-executable portable-applications

我从netbeans网站下载了netbeans netbeans-6.9.1-201007282301-ml.zip的可移植版本,并更改​​了netbeans网站上指示的etc / netbeans.conf中的配置文件。文件内容如下。

# ${HOME} will be replaced by JVM user.home system property
#netbeans_default_userdir="${HOME}/.netbeans/6.9"
netbeans_default_userdir=".netbeans/6.9"

# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.

# If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)

# Default location of JDK, can be overridden by using --jdkhome <dir>:
#netbeans_jdkhome="/path/to/jdk"
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_24\"

# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.

但是当我尝试运行它时它拒绝启动。如果我将JDK路径更改为不正确的东西,它会抱怨它无法找到jdk所以我认为jdk路径是正确的。当我尝试启动它时,它还会创建一个.netbeans目录。我没有看到任何错误,只是没有做任何其他可观察的事情。

有人知道如何设置此版本的netbeans吗?

感谢。

4 个答案:

答案 0 :(得分:1)

您的netbeans_default_userdir相对路径将指向您的安装文件夹,不允许使用该文件夹。尝试将其更改为另一个目录。

之后,尝试再次执行netbeans.exe。我建议你从命令提示符运行它。有关启动错误的更多解释。

干杯

答案 1 :(得分:1)

您是否尝试使用/代替\?这应该可以解决你的问题。

答案 2 :(得分:1)

我在NB 7.0.1 RC1中发现.conf文件设置被忽略,如默认.conf文件中所示(在Netbeans安装中找到)。如果从命令行执行NB应用程序,则会收到有关userdir和Netbeans目录匹配的消息,因为未正确读取default_userdir参数。

从新的自定义.conf文件中的参数名称中删除“netbeans_”为我解决了问题。我不知道这是否适用于6.9.1,或者仅适用于我的环境中的异常。

default_userdir = “$ {HOME} /.$ {APPNAME}的/ dev”

答案 3 :(得分:0)

我实际上让它与netbeans 7一起使用。我不记得确切的步骤,但基本上我必须按预期修改配置文件,但关键是从命令行运行它,游戏中的一些异常消息指示我走在正确的道路上。感谢大家的帮助。