2

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!

Bradley Pearl
  • 23
  • 1
  • 6
  • Have you added java to the system/user path? Have you exported the JAVA_HOME environment variable? – ernest_k May 20 '17 at 14:13
  • Would you mind explaining a bit more? I'm a bit of a novice when it comes to Linux, but I am relatively comfortable with the command line, if that helps. – Bradley Pearl May 23 '17 at 00:53

2 Answers2

2

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 #.

0

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.

UdayanBKamble
  • 99
  • 1
  • 7