What if, after installing and running NetBeans for few months, you find out that JDK got removed somehow, either by you, while you might have formatted your OSystem OR Accidentally? Now, what to do?
When I had first encountered the problem, I screwed it up, what I did, I uninstalled the NetBeans, re-install the JDK and then installed the NetBeans, that took a hell lot of a time!
![]() |
I tried it on my Windows OSystem (Win XP Professional Service Pack 2), don't know about the others, should work the same way.
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/6.0"
# 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-Xverify:none -J-Dapple.laf.useScreenMenuBar=true"
# (Note that a default -Xmx is selected for you automatically.)
# 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="D:\Java\jdk1.5.0_10"
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_03"
# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"
(Assuming that you have two JDK's on your OSystem)
Now, considering that you are not aware of that you have lost JDK, you boot NetBeans IDE, and the following error-dialog prompts you with a message "JDK 5.0 or newer Not Found".
Don't worry, just goto the configuration file and make following changes,
# Default location of JDK, can be overridden by using --jdkhome <dir>: netbeans_jdkhome="D:\Java\jdk1.5.0_10" #netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_03"
![]() |
| bootingNB.jpg | ![]() |
103837 bytes |
| nb-cmdWin.jpg | ![]() |
66055 bytes |
| troubleshootingNetBeans.htm | ![]() |
767 bytes |
| troubleshootingNetBeans.js | ![]() |
118 bytes |
| troubleshootingNetBeans.swf | ![]() |
594170 bytes |