我从 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吗?
谢谢。