Oracle JDK 8 QuickStart on SolusOS
Hello SolusOS User! This Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java JDK 8 on Linux SolusOS 32/64bit Desktop.
After Installing you will need to Use the update-alternatives Tool to Update your System Java to JDK 1.8.
The JDK is a superset of the JRE, and contains everything in the JRE, plus tools such as compilers and debuggers for development.
The Content and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut Easier to Read & Digest ;)
Download Oracle Java SE JDK 8 for Linux:JDK 8 32/64bit Linux tar.gz
Find and Double-Click on the tar.gz Archive
Extract it Into the /tmp Folder.
Open a Terminal Window
(Press “Enter” to Execute Commands)
Relocate Oracle JDK 8
If Got “User is Not in Sudoers file” then Look:
if [ ! -d "/usr/lib/jvm" ]; then mkdir /usr/lib/jvm; fi
The above command is used to create a jvm directory if not already there.
Set the SuperUser as holder:
chown -R root:root /tmp/jdk1.8*
Reiterate the Execution Permission over the Java binaries
chmod -R +x /tmp/jdk1.8*/bin
Finally Shift the Java content with
mv /tmp/jdk1.8* /usr/lib/jvm/
Installing Oracle Java JDK 8
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8*/bin/java 1065
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8*/bin/javac 1065
update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.8*/bin/jar 1065
update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8*/bin/javaws 1065
Checking or Setting the System Java Version in Use with
update-alternatives --config java
To Switch of Java Version Just Enter the Reference Number on First Column. :)
Last achive the SuperUser session with:
Getting-Started and Running with JDK 8:Quick Getting-Started Tutorial for JDK 8 Development