Netbeans can't open project or anything

If you had Netbeans installation over Java 9 then Please note Netbeans does not work with Java 9. Proof: https://forums.netbeans.org/topic68000.html

This solution is for Windows, but the same logic is applied in Linux too.

Solution1: You have to edit netbeans.conf file to your java installation path. You can find netbeans.conf inside etc folder of Netbeans installation folder. (By default is the program files folder)

Make your netbeans.conf like below. Eg, netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.8.0_144"

Solution2: -- If you don't want to edit your netbeans.conf.

Install java 8 (32 bit or 64 bit whatever). Copy jdk1.8.0_144 and jre1.8.0_144 folders from program files (x86)/java / to program files/java/. Inside program files/java folder, rename jdk1.8.0_144 to jdk-9 and jre1.8.0_144 to jre-9.

You are done.


The problem is related to this bug in Java JRE 1.8.0_131-b11. https://bugs.openjdk.java.net/browse/JDK-8179014

It only happens when Windows 'God Mode' is active (read the comments).

Uninstall JRE 1.8.0_131-b11 and delete the 'God Mode Folder' on the desktop and the problem is gone. I was able to reinstall Netbeans and it is running fine.


Right it is due to the issue https://bugs.openjdk.java.net/browse/JDK-8179014 which is already investigated. This issue only observed on Windows 10 x64, build 1703. Deleting the GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} will resolve the issue

Tags:

Java

Netbeans