Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
214 views
in Technique[技术] by (71.8m points)

java - Where can I set the JRE/JDK which is used to run Netbeans besides the command line?

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...

Where can I set the JRE/JDK which is used to run Netbeans?

A little background:

  1. I installed JDK 1.6_10 (The system is Windows Vista Business 64)
  2. I installed Netbeans 6.5
  3. After a few weeks I uninstalled Netbeans 6.5 (some problems which I hope to solve by a reinstall)
  4. I also uninstalled JDK 1.6_10 and installed 1.6_11 instead.
  5. I reinstalled Netbeans 6.5
  6. 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)
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try setting netbeans_jdkhome in {NetBeans directory}/etc/netbeans.conf.

# Default location of JDK, can be overridden by using --jdkhome : netbeans_jdkhome="..." # (omitted path, as I have Java in a non-standard location)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...