无法启动 NetBeans 6.9.1 IDE 的便携版本
我从 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 吗?
谢谢。
I downloaded the portable version of netbeans netbeans-6.9.1-201007282301-ml.zip from the netbeans site and changed the config file in etc/netbeans.conf as indicated on the netbeans site. The file contents are below.
# ${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.
But it refuses to start when i try to run it. If i change the JDK path to something incorrect it complains that it can't find the jdk so i think the jdk path is correct. It also creates a .netbeans directory when i try to start it. I don't see any errors and it just doesn't do anything else observable.
Does anybody know how to set up this version of netbeans?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
你的netbeans_default_userdir相对路径将指向你的安装文件夹,这是不允许的。尝试将其更改为另一个目录。
之后,尝试再次执行netbeans.exe。我建议您从命令提示符运行它。关于启动错误会有更多解释。
干杯
Your netbeans_default_userdir relative path will point to your installation folder, in which it is not allowed. Try to change it to another directory.
After that, try to execute again the netbeans.exe. I would suggest you to run it from command prompt. There will be more explanation on startup error.
Cheers
您是否尝试使用
/
而不是\
?那应该可以解决你的问题。Did you try using
/
instead of\
? That should resolve your problem.我发现 NB 7.0.1 RC1 中的 .conf 文件设置被忽略,如默认 .conf 文件(在 Netbeans 安装中找到)中给出的那样。如果从命令行执行 NB 应用程序,您会收到一条有关 userdir 和 Netbeans 目录匹配的消息,因为未正确读取 default_userdir 参数。
从新的自定义 .conf 文件中的参数名称中删除“netbeans_”解决了我的问题。我不知道这是否适用于 6.9.1,或者只是我的环境中的异常情况。
即
default_userdir="${HOME}/.${APPNAME}/dev"
I found with NB 7.0.1 RC1 the .conf file settings are ignored as given in the default .conf file (found in Netbeans installation). If you execute an NB application from the command line you get a message about the userdir and Netbeans directories matching because the default_userdir parameter is not being read properly.
Removing "netbeans_" from the parameter names in the new custom .conf file fixed the problem for me. I don't know if that applies to 6.9.1 or not, or just an anomaly in my environment.
i.e.
default_userdir="${HOME}/.${APPNAME}/dev"
我实际上让它与 netbeans 7 一起工作。我不记得确切的步骤,但基本上我必须按预期修改配置文件,但关键是从命令行运行它,其中一些异常消息将我引导到右侧小路。感谢大家的帮助。
I actually got it to work with netbeans 7. I don't remember the exact steps but basically I had to modify the config file as expected but the key was to run it from command line which game some exception messages which directed me onto the right path. Thanks for everyone's help.