

Either install and use a supported JDK with NetBeans. From the release notes for NetBeans 12.0: Apache NetBeans 12.0 runs on the JDK LTS releases 8 and 11, as well as on JDK 14, i.e., the current JDK release at the time of this NetBeans release. Java 11 and Java 8 are both installed in the same place (/usr/lib/jvm), so it is beyond me why it could access Java 8 JDK just fine a week ago, and now "cannot access specified user directory". The problem is that you are running NetBeans 12.0 with JDK 17. Running the prior command with sudo gives the exact same result. Java.io.FileNotFoundException: /snap/netbeans/84/netbeans/bin/lock (Read-only file system) Click OK to continue in spite of previous error." Clicking OK gives an error: This is a serious problem that may prevent the program to function properly. Throws a warning : "Warning - An instance of the program cannot access specified user directory. snap/netbeans/current/netbeans/bin/netbeans -jdkhome /usr/lib/jvm/java-11-openjdk-amd64 Attempted to set JDK by running Netbeans from terminal and using the -jdkhome flag, but this did not work.Netbeans_jdkhome="/usr/lib/jvm/java-11-openjdk-amd64/bin" Netbeans fails to launch. Netbeans_jdkhome="/usr/lib/jvm/java-11-openjdk-amd64" Netbeans fails to launch. See how you can participate in Apache NetBeans.
NETBEANS JDK 12 HOW TO
See how to stay informed and in touch with other NetBeans users and developers. Netbeans_jdkhome="/usr/lib/jvm" Netbeans fails to launch. The Apache NetBeans Community uses the mailing lists as the primary source of communication. I can only edit the /etc/nf file, the other 2 are uneditable (even using sudo nano ). snap/netbeans/80/netbeans/etc/nfĪll three files have the jdkhome line commented out using a #. I checked the jdkhome line in nf, and found 3 instances of this file: As a workaround, I installed Java 11, which has not yet fixed the problem.

UPDATES: It seems rolling back Netbeans is not an option. It can also be defined on the commandline by passing -jdkhome /path/to/jdk. The jdk identified by jdkhome is the default home. What is the best way to fix this? Can I roll back this unwanted update? How do I prevent Netbeans from being updated in the future? Thank you for downloading this release of the Java Platform, Standard Edition Development Kit (JDK). If I remember correctly, youll need to set the netbeansjdkhome property in your netbeans config file. I do not want to use Java 11 (currently using Java 8) because some of my dependencies do not support it. The pop-up can be dismissed but Netbeans will not open. It is consistently the first IDE to support the latest versions of the JDK, Java EE, and JavaFX. Please install Java 11 or newer or use -jdkhome switch to point to its installation directory. Pop-up Desc: Cannot run on older versions of Java than Java 11. Whenever I try to start Netbeans, a pop-up shows up: Netbeans updated (to version 19) over the weekend, and it is now completely broken.
