Wednesday, January 23, 2013

How-to Install Oracle-Sun Java JDK 7 x64 on Manjaro 0.8.2 64bit Xfce Desktop Easy Visual-Guide

The Guide Show Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java SE JDK 7 64bit on Manjaro 0.8.2 x86_64 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;)

Java on Arch-Linux
  1. Download Oracle Java SE JDK 7:

    Oracle JDK7 x64.tar.gz
  2. Double-Click on the tar.gz Archive and Extract Into /tpm Linux Manjaro Xfce Java JDK 7 tar.gz Extraction
  3. Open Terminal Window
    Linux Manjaro 0.8.2 Xfce Open Terminal
  4. Relocate JDK7
    su
    mkdir /usr/lib/jvm
    chmod +x /tmp/jdk1.7.*/bin/*
    mv /tmp/jdk1.7.* /usr/lib/jvm
  5. 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>
    
  6. 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

  7. Getting-Started with Oracle Java JDK7 Development:

    Getting-Started Quickly with JDK7