Wednesday, November 15, 2017

How to install Open JDK 9 on Lubuntu 17.10

How to install Open JDK 9 on Lubuntu 17.10

If you prefer the open source version of java, then you should use open JDK, on lubuntu 17.10 open JDK 9 is available on the repository, so you can install it right away. So this article is about installing open JDK 9 on lubuntu 17.10 artful.

Before we begin, i need to tell you that if you previously install oracle java 9 and then you install open JDK 9, for some reason it will remove automatically oracle java 9. This not happened on the previous version on lubuntu 16.04 xenial.

So keep in mind that you won't be able to switch back and forth between oracle JDK and open JDK like we used to have in the past. Installing open JDK means removing oracle JDK if it's installed before.

How to install Open JDK 9 on Lubuntu 17.10
  • open command line/terminal on lubuntu (press CTRL + ALT + T)
  • run update command
  • sudo apt-get update
  • install open JDK 9 package
  • sudo apt-get install openjdk-9-jdk
    
  • done!

You can check java version by running java -version on the command line, for open JDK 9 it should says something like this:
openjdk version "9-Ubuntu"
OpenJDK Runtime Environment (build 9-Ubuntu+0-9b181-4)
OpenJDK 64-Bit Server VM (build 9-Ubuntu+0-9b181-4, mixed mode)

No comments:

Post a Comment