Revision as of 14:10, 9 December 2009 by T h (Talk | contribs)

Can I specify the JDK to run NetBeans on?

Yes, use the --jdkhome <path> option when starting NetBeans. <path> is the root of the JDK installation.

The NetBeans installer looks for suitable JDK installations available on user's system and allows the user to select the one she wants to run NetBeans with. For the installer (6.0-M10) itself use --javahome <path>. However, the setting may become obsolete when the user installs a new JDK later, or may be inconvenient when she wants to run the IDE with another JDK. That's where the --jdkhome swich comes handy.

If you want to set the option permanently, you can do so in the netbeans.conf file.


  • Windows
        netbeans.exe --jdkhome "C:\Program Files\jdk1.5.0_02"
  • Unix
        netbeans --jdkhome /usr/bin/jdk1.5.0_02

  Applies to NetBeans 3.6, 4.0, 4.1, 5.0, 5.5, 6.x
  Platforms: All
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo