How-to Install Oracle-Sun Java JDK 7 x86 on Linux Cinnarch 2013 32bit Desktop Easy Visual-Guide

January 31st, 2013 by Regaz



The Guide Shows You Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java SE JDK 7 32bit on Linux Cinnarch 2013 Cinnamon i686 Desktop.

After Installing you will need to Update your System Env Variables and PATH to make Cinnarch Aware of the Java JDK Installation.

To the Article Bottom there is a Link for Quick Start with Java JDK 7 Development on Cinnarch 2013.

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 Understand;)

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

    Java JDK 7 i586 tar.gz
  2. Double-Click on the tar.gz Archive and Extract Into /tmpLinux Cinnarch 2013 Cinnamon Java JDK 7 tar.gz Extraction
  3. Open a Terminal Window
    (Press “Enter” to Execute Commands)
    Linux Cinnarch 2013 Cinnamon Open Terminal
  4. Relocate JDK
    su 

    If Got “User is Not in Sudoers file” then Look: Solution

    chmod +x /tmp/jdk1.7*/bin/*
    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.

    chown -R root:root /tmp/jdk1.7*

    Reiterate the Execution Permission over the Java binaries

    chmod -R +x /tmp/jdk1.7*/bin

    Finally Shift the Java content with

    mv /tmp/jdk1.7* /usr/lib/jvm/
  5. SetUp the Java JDK Environment Variables

    Get the Exact Path to Insert with:

    cd /usr/lib/jvm/jkd*
    pwd

    Copy (Select & Ctrl+Shift+c) the Path to Paste (Ctrl+Shift+v) into the Config File:

    nano /etc/profile.d/oraclejdk7.sh

    export J2SDKDIR=
    export J2REDIR=$J2SDKDIR/jre
    export JAVA_HOME=

    Ctrl+x to Save & Exit :)

    nano /etc/profile.d/oraclejdk7.csh

    setenv J2SDKDIR=
    setenv J2REDIR=$J2SDKDIR/jre
    setenv JAVA_HOME=

  6. SetUp Java JDK 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/.sh /etc/profile.d/.sh.back
      mv /etc/profile.d/.csh /etc/profile.d/.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
    • Else 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 JDK Development:

    Getting-Started Quickly with JDK

Tags: , , , , , , , , , , , ,