NetBeans 8.2 does not open on Mac OS

Yes, NetBeans 8.2 does use JDK 1.8, and specifically does not support JDK 1.9.

It's unclear from the OP which version of Java is desired to run with NetBeans, but the version of NetBeans to use is governed by the version of Java to be used:

[1] For Java 8, use Netbeans 8.2. Note that Java 9 is not supported. You can download NetBeans 8.2 bundled with JDK 8u141 for Mac OS here:

http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html

Once it has been installed it no specific configuration for Java should be necessary.

[2] For Java 9 you must use a Development Build of NetBeans. That can be downloaded from http://bits.netbeans.org/download/trunk/nightly/latest/ but be sure that Mac OS X is selected from the Platform drop list before clicking Download.

For any version of NetBeans you can specify your own version of Java as follows:

  • Start NetBeans and select Java Platforms from the Tools menu.

  • Click the Add Platform... button.

  • Complete the wizard to locate the version of Java you want to use.

One final point: there is no problem having multiple versions of NetBeans installed and running concurrently using different JDKs, typically NetBeans 8.2 with JDK 1.8 and NetBeans Dev Build with JDK 1.9.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Update:

If NetBeans closes itself down on startup it may have an invalid JDK path. To change the JDK that NetBeans uses:

  • Locate the file netbeans.conf. It should be in the etc directory under the NetBeans installation directory.

  • Edit that file in a text editor. Locate the line containing the property netbeans_jdkhome. On my Windows 10 installation it looks like this:

    netbeans_jdkhome="C:\Java\jdk1.8.0_121"

  • Change the value for that property to specify the path to the desired JDK, save the file and restart NetBeans.


macOS 10.13.5 JavaJDK 10 installed as "System" JVM

I was able to install NetBeans, but unable to get it to function. Window would open, clicking on "New Project" or "New File" did absolutely nothing.

Was able to get it working (all modules and servers) by going into the configuration file at /Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf

and editing the commented out path to JDK at the bottom of the file!

Cheers!


As pointed in the comments:

I had tried to set netbeans_jdkhome in /Applications/NetBeans/NetBeans\ 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf to point to JDK 10, but still it did not work.

I had to install JDK 8, and set netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home"

Uninstalling JDK 10 and using JDK 8 worked for me and setting netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home" worked quite well.

Tags:

Netbeans