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
-
How to install Oracle Java on Ubuntu – TmTron May 27 '16 at 16:05
-
Why are you running the Windows version? You'll get much better results with the native Linux version. – You'reAGitForNotUsingGit May 27 '16 at 17:10
3 Answers
If you don't require a specific verison, it's a one-command thing:
sudo apt-get install default-jdk

- 14,809
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.

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

- 10,923
-
-
Just visit the 2 links I posted, specifically the instructions link. I could give you step-by-step but I would just be rewriting the instructions I posted the link to... – Delorean May 27 '16 at 20:57
-
-