FaqInstallJavahome

I do have JDK installed correctly. How can I make the installer use it?

Contents


NetBeans 6.X

Run the installer with the --javahome <path-to-jdk>option.

If you believe you have the JDK installed properly, but the installer seems to fail to recognize it, you can try to run the installer with the --javahome option and specify the path to the JDK you want the installer to use, e.g.:

  • Linux: netbeans-6.0-linux.sh --javahome /usr/jdk/jdk1.6.0_04
  • Windows: netbeans-6.0-windows.exe --javahome "C:\Program Files\Java\jdk1.6.0_04"

Note surrounding double quotes if path contains space(s).

NetBeans 4.X, 5.X

Run the installer with the-is:javahome <path-to-jdk>option.

If you believe you have the JDK installed properly, but the installer seems to fail to recognize it, you can try to run the installer with the -is:javahome option and specify the path to the JDK you want the installer to use, e.g.:

  • Linux: netbeans-5_5-linux.bin -is:javahome /usr/jdk/jdk1.5.0_06
  • Windows: netbeans-5_5-windows.exe -is:javahome "C:\Program Files\Java\jdk1.5.0_06"

Note surrounding double quotes if path contains space(s).

Alternate Method

Try out this method, if above fails.

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