Install Oracle JDK 9 Elementary OS
Hello Elementary OS User! The Tutorial Shows You Step-by-Step How to Install Oracle JDK 9 on Elementary OS 32/64-bit Desktops.
And to SetUp Oracle JDK for Elementary OS you will need to Use the update-alternatives Tool to Update your System Java to 1.9 JDK9.
Furthermore, Java SE 9 includes much awaited New Features like the Modularization of the Java Platform, Better Performance, Support for New Standards, and many other improvements.
- Java REPL Shell jshell
- Full support for HTTP 2.0, new HTTP client that implement HTTP 2.0 and websockets
- Java Microbenchmarking Harness
- Java Process API Boost
- Debugging in Production
The Contents and Details of Oracle JDK 9 on Elementary OS Install are Expressly Minimal to Give Focus Only to the Essentials Instructions and Commands and Make the Tut Easier to Understand ;).
Open a Terminal Shell emulator window
(Press “Enter” to Execute Commands)
Search into Apps.
Download Oracle Java SE JDK 9 for LinuxOracle JDK 9 Linux tar.gz
Double-Click on the tar.gz Archive and Extract into /tmp
Or from Shell:
tar xvzf ~/Downloads/jdk-9*.tar.gz -C /tmp/
Relocate Java JDK 9
If Got “User is Not in Sudoers file” then see: How to Enable sudo
Make a jvm Directory if Not already there with
if [ ! -d "/usr/lib/jvm" ]; then mkdir /usr/lib/jvm; fi
Set the root superUser as owner:
sudo chown -R root:root /tmp/jdk-9
Reiterate the Execution Permission over the Java binaries:
chmod -R +x /tmp/jdk-9/bin
Finally, Shift the Java contents with:
mv /tmp/jdk-9 /usr/lib/jvm/
Installing Oracle Java JDK 9
You can directly Copy & Paste the Commands into Terminal..
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-9/bin/java 1065
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-9/bin/javac 1065
update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-9/bin/jar 1065
update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk-9/bin/javaws 1065
Checking or Setting the System Java Version in Use with
update-alternatives --config java
And for the Java Compiler instead:
sudo update-alternatives --config javac
To Switch of Java Version Just Enter the Selection Number on First Column. :).
(Optional) Setting JAVA_HOME User Environment Variable.
And Edit the Bash environment Configuration file
Eventually to Check the JDK 9 exact PATH use in another window:
Ctr+x to Save & Exit from nano Editor :)
Next to Load the New Bash Environment:
Finally, Test New Java JDK 9 Installation
Java IDEs Installation on Elementary OS
Eclipse IDE for Java Development Install on Elementary OS: Installing Eclipse IDE for Java Dev on Elementary OS.
Netbeans IDE for Java Development Install on Elementary OS: Installing NetBeans IDE for Java Dev on Elementary OS.
IntelliJ IDEA 2020 for Java Development Install on Elementary OS: Installing IntelliJ IDEA for Java Dev on Elementary OS.
Now Thanks to Oracle-Sun Corporation You are Able to Successfully Start Up with Java 9 Development.
Welcome to Java 9 New Dev Env! ;).
Tags: Elementary OS, elementary os ide, Elementary OS java ide, Elementary OS tutorial, gnu, gnu linux, gnu/linux, Guide, How-to, Install, Install JDK 9 Elementary OS, install oracle JDK 9 Elementary OS, install oracle jdk Elementary OS, Java, java development Elementary OS, java development kit, JDK 9, JDK 9 Elementary OS, Linux, Linux Tutorial, Oracle, oracle java, Oracle JDK 9 Elementary OS, Tutorial