Wednesday, November 15, 2017

How to install Oracle Java 9 on Lubuntu 17.10

How to install Oracle Java 9 on Lubuntu 17.10

Java 9 is the latest stable release of java (JDK), java 9 comes with some new features such as new module system, linking, jshell, improved javadoc, collection factory methods, and so on. In this article i will show you how to install oracle java 9 on lubuntu 17.10 artful.

Step by step how to install Oracle Java 9 on Lubuntu 17.10
  • open command line/terminal on lubuntu (simply press CTRL + ALT + T)
  • add PPA repository for oracle java
  • sudo apt-add-repository ppa:webupd8team/java
  • run update command
  • sudo apt-get update
  • install the oracle java 9 installer
  • sudo apt-get install oracle-java9-installer
  • wait until the installer finish download and install java 9
  • add JAVA_HOME environment variable
  • export JAVA_HOME=/usr/lib/jvm/java-9-oracle
    
  • done!

You can check your java version by running java -version on the terminal, at this point you already have java development kit (JDK) and you are ready to create some java application.


2 comments: