1

Hi I need help installing JDK so I can use Netbeans. When I try and install Netbeans with POL it says missing JDK. Please Help

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
  • 3,790
  • 3
  • 17
  • 19
  • -1 You can't just say "install it." You need to provide instructions for doing so. And I know from experience that installing Oracle's JDK is not the easiest task. – You'reAGitForNotUsingGit May 27 '16 at 17:09
  • @AndroidDev I don't think so, but I will add the instructions, which is extracting the package, and in some cases setting JAVA_HOME and PATH. – Ho1 Jun 13 '16 at 09:54
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
  • 10,923