The Guide Show Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java SE JDK 7 32bit on Manjaro 0.8.2 i686 Xfce Desktop.
After Installing you will need to Update your System Env Variables and PATH to make Manjaro Aware of the Java JDK7 Installation.
To the Post Bottom there is a Link for Quick Getting-Started with Java JDK 7 Development on Manjaro 0.8.2.
To Make the Entire Process Easier to Visualize and Retain the Article Includes the Basic Screenshots of the Essentials Steps Involved.
The Content and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut more Easy & Digestive;)
-
Download Java SE JDK 7:
- Double-Click on the tar.gz Archive and Extract Into /tpm
- Open Terminal Window
- Relocate JDK7
su
mkdir /usr/lib/jvm
chmod +x /tmp/jdk1.7.*/bin/*
mv /tmp/jdk1.7.* /usr/lib/jvm
SetUp the Java JDK7 Environment Variables
Get the Exact Path to Insert with:
cd /usr/lib/jvm/jkd*
pwd
Copy the Path to Paste into the Config File:
nano /etc/profile.d/oraclejdk7.sh
export J2SDKDIR=<RightClick&PASTEinPATH> export J2REDIR=$J2SDKDIR/jre export JAVA_HOME=<RightClick&PASTEinPATH>
Ctr+x to Save & Exit :)
nano /etc/profile.d/oraclejdk7.csh
setenv J2SDKDIR=<RightClick&PASTEinPATH> setenv J2REDIR=$J2SDKDIR/jre setenv JAVA_HOME=<RightClick&PASTEinPATH>
SetUp Java JDK7 Path
Check if Another Jdk Releases is Already Installed:
pacman -Q | grep jdk
If Yes then provide to Rename the Config Files in /etc/profile.d:
mv /etc/profile.d/<javaPackageName>.sh /etc/profile.d/<javaPackageName>.sh.back
mv /etc/profile.d/<javaPackageName>.csh /etc/profile.d/<javaPackageName>.csh.back
LogOut and LogIn Again
Then provide to Modify the Simlinks to Java Executables:
ln -fs $JAVA_HOME/bin/java /usr/bin/java
ln -fs $JAVA_HOME/bin/javac /usr/bin/javac
ln -fs $JAVA_HOME/bin/jre /usr/bin/jre
ln -fs $JAVA_HOME/bin/javaws /usr/bin/javaws
If Not then will be Enough to Edit the Bash Config file for the User:
exit
nano ~/.bashrc
Inserts:
export PATH="$JAVA_HOME/bin:$PATH"
Then LogOut and LogIn Again
-
Getting-Started with Oracle Java JDK7 Development: