I would like to install java to learn to program in java and develop web and android apps. I'm running on Ubuntu 18.04 LTS (which doesn't come with java pre-installed). I have seen that there a number of possibilities: OpenJDK, Apache JDK, and each with different versions of Java.
Which one would you recommend to install given my specifications, and which commands do I need to issue to the terminal?
sudo apt-get install oracle-java8-installer
right? However I found on https://en.wikipedia.org/wiki/Java_version_history that the latest lts version is Java 11. Therefore, should I install this instead:sudo apt-get install oracle-java11-installer
? – johnwolf1987 Mar 30 '19 at 14:02sudo apt install openjdk-8-jdk
instead of Oracle Java 8. For a Java IDE I recommend Apache NetBeans 10. To install it typesudo snap install --classic netbeans
. – karel Mar 30 '19 at 14:04