除命令行外,我在哪里可以设置用于运行Netbeans的JRE / JDK? [英] Where can I set the JRE/JDK which is used to run Netbeans besides the command line?
本文介绍了除命令行外,我在哪里可以设置用于运行Netbeans的JRE / JDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
首先,我知道命令行参数,但我不想使用它,因为我想学习,而不仅仅是完成它,所以......
First of all, I know about the command line parameter, but I don't want to use it because I want to learn, not just get it done, so...
我在哪里可以设置用于运行Netbeans的JRE / JDK?
一点背景:
- 我安装了JDK 1.6_10(系统是Windows Vista Business 64)
- 我安装了Netbeans 6.5
- 几周后我卸载了Netbeans 6.5(我希望通过重新安装解决一些问题)
- 我还卸载了JDK 1.6_10并安装了1.6_11而不是。
- 我重新安装了Netbeans 6.5
- 现在我无法启动Netbeans,因为它坚持使用旧的JDK。 (尝试使用默认版本也不起作用.JAVA_HOME设置为1.6_11)
- I installed JDK 1.6_10 (The system is Windows Vista Business 64)
- I installed Netbeans 6.5
- After a few weeks I uninstalled Netbeans 6.5 (some problems which I hope to solve by a reinstall)
- I also uninstalled JDK 1.6_10 and installed 1.6_11 instead.
- I reinstalled Netbeans 6.5
- Now I cannot start Netbeans because it insists of using the old JDK. (Trying to use the default version doesn't work either. JAVA_HOME is set to 1.6_11)
推荐答案
尝试在{NetBeans目录} /etc/netbeans.conf中设置netbeans_jdkhome。
Try setting netbeans_jdkhome in {NetBeans directory}/etc/netbeans.conf.
#JDK的默认位置,可以被覆盖使用--jdkhome:
netbeans_jdkhome =...#(省略路径,因为我在非标准位置有Java)
# Default location of JDK, can be overridden by using --jdkhome : netbeans_jdkhome="..." # (omitted path, as I have Java in a non-standard location)
这篇关于除命令行外,我在哪里可以设置用于运行Netbeans的JRE / JDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文