简体   繁体   中英

Netbeans 8.2 all projects broken, no JDK found

I recently switched to Linux Mint, and needed to install Netbeans version 8.2. It installed without issue, but whenever I try to open a project, its marked as broken. I did some searching, and it seems that it isn't recognizing the JDK I installed (jdk 1.8.0_131). I tried to do some troubleshooting myself, but I can't find a way to fix it. I was hoping someone here could lead me in the right direction. Please let me know if you need more info.

Thank you in advance!

Maybe you did not install jdk correctly for your system. Simple solution may be to edit netbeans.conf file (in installation folder in etc subfolder) and define netbeans_jdkhome. You can find a row starting with netbeans_jdkhome in the bottom of the file commented by #.

While installing NetBeans 8.2 on Ubuntu 18.04, there was one question about NetBeans jdk installation path, specify correct path there about JAVA_HOME. In my case the was taken as "/usr" . After changing netbeans_jdkhome as "/usr/lib/jvm/java-8-openjdk-amd64" in netbeans.conf in netbeans-8.2rc/etc , all worked fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM