0

我从netbeans站点下载了netbeans netbeans-6.9.1-201007282301-ml.zip的可移植版本,并将etc/netbeans.conf中的配置文件更改为在netbeans站点上显示。文件内容如下。无法启动NetBeans 6.9.1的可移植版本IDE

# ${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?

谢谢。

回答

0

其实,我得到了它与NetBeans工作7.我不记得确切的步骤,但基本上我必须按照预期修改配置文件,但关键是从命令行运行它,游戏中的一些异常消息将我导向正确的路径。感谢大家的帮助。

1

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

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

干杯

1

你有没有尝试使用/,而不是\?这应该可以解决你的问题。

1

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

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

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