Oracle-Sun JDK 8 Quick Start for Gentoo Linux
Hi! The Tutorial shows you Step-by-Step How to Install Oracle-Sun Official Java SE JDK 8 x64 on GNU+Linux Gentoo 2012+ KDE4 x8664 Desktop.
The Process is a Little Beat Tedious and Intricate but it Simply Give you the Freedom to Know How to Choose Freely which JDK8 to Install.).
And this Visual Guide includes the Basic Screenshots of All GUI Steps involved.
The Content give Focus Only to the Essentials Instructions and Commands to make it Easier to Follow.
-
Download Oracle-Sun Java SE JDK 8:
-
Extract JDK 8 tar.gz Archive
mv /jdk*tar.gz /tmp
tar xvzf /jdk*tar.gz
-
Open a Terminal Window
(Press “Enter” to Execute Commands)How to Easy&Quick Installing Gentoo 12 KDE4 from Live DVD:
Link Contains Guide on Installing Easily and Step-by-Step the KDE4 Desktop from Live DVD. -
Relocate Java JDK8
sudo chown -R root:root /tmp/jdk1.8*
mv /tmp/jdk1.8* /opt
-
Making an Oracle JDK8 Installation Config File
nano /usr/share/java-config-2/vm/oracle-sun-jdk8u[X] Just Substitute to the [X] the Correspondent Java Update Version.
Now you can simply Just Copy, Paste and Substitute the Right Values in Sections Between “
“VERSION="Oracle-Sun JDK 8u[X]" JAVA_HOME="/opt/jdk1.8.0_0[X]" JDK_HOME="/opt/jdk1.8.0_0[X]" JAVAC="${JAVA_HOME}/bin/javac" PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin" ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin" LDPATH="${JAVA_HOME}/jre/lib/amd64/:${JAVA_HOME}/jre/lib/amd64/native_threads/:${JAVA_HOME}/jre/lib/amd64/xawt/:${JAVA_HOME}/jre/lib/amd64/server/" MANPATH="/opt/icedtea-bin-8.2.2.1/man" PROVIDES_TYPE="JDK JRE" PROVIDES_VERSION="1.8" # Taken from sun.boot.class.path property BOOTCLASSPATH="${JAVA_HOME}/jre/lib/resources.jar:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar" GENERATION="2" ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" VMHANDLE="oracle-jdk8" BUILD_ONLY="FALSE"
Ctrl+x to Save and Exit.
-
Updating the System to Custom Oracle Sun JDK 8
Make a Symlink
ln -s /opt/jdk1.8.0_0X/ /usr/lib/jvm/oracle-sun-jdk8uX
Find the New Oracle Java SE JDK 8 Installation
java-config -L
Switch System Java to the New Manually Installed Oracle JDK 8
java-config --set-system-vm oracle-sun-jdk8uX
Test New Oracle JDK 8 Installation
java -version
How to Install IntelliJ IDEA for Java on Gentoo Linux
Installing IntelliJ IDEA on Gentoo Linux.
How to Install Eclipse for Java Developers on Gentoo Linux:
SetUp Eclipse Java on Gentoo Linux.