THE FIRST STEP
==============JAVA INSTALL=====================
wget -c http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-i586.tar.gz
wget -c http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jre-7u17-linux-i586.tar.gz
tar zxvf jdk&&jre
chmod a+x /usr/local/java
==============ATTATCH TO /etc/profile=============
JAVA_HOME=/usr/local/java/jdk1.7.0_12
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
JRE_HOME=/usr/local/java/jre1.7.0_12
PATH=$PATH:$HOME/bin:$JRE_HOME/bin
==============source .profile======================
==============java -version to verify================
suma@vm12:~$ java -version
-bash: /usr/local/java/jdk1.7.0_12/bin/java: No such file or directory
This message is shown because some 32 bit libraries are absent in Ubuntu 64 bit. Run:
apt-get install libc6-i386
See http://stackoverflow.com/questions/9081962/java-is-installed-in-listing-but-execution-produces-java-no-such-file-or-d/9082947#9082947 for more details
http://askubuntu.com/questions/207552/no-such-file-or-directory-when-invoking-java
================================================