1

When I try and install Netbeans with POL it says missing JDK. How can I install JDK?

Adi
  • 55

3 Answers3

1

If you don't require a specific verison, it's a one-command thing:

sudo apt-get install default-jdk
0

Download the latest JDK from here:

http://www.oracle.com/technetwork/java/javase/downloads/

You can also use this script to download it automatically.

Then install it by extracting the package which you can do by double clicking on the file and selecting extract from the menu. You may also want to add these lines to your ~/.bashrc:

export JAVA_HOME=/usr/local/jdk1.8.0_91
export PATH=$JAVA_HOME/jre/bin:$JAVA_HOME/bin:$PATH

Oracle Java is better considering performance and compatibility compared to other implementations of JDK.

Ho1
  • 4,000
0

You can download and install the Java SDK which comes bundled with NetBeans as a package from here so that you can install both at once.

Take note that there is also a Linux version here. So you can install JDK with NetBeans directly onto Linux without having to install it through PlayOnLinux. I would suggest trying out the Linux version before trying to install it on POL.

Click here for instruction on installing JDK+NetBeans on Linux.

Delorean
  • 11,563