1. Ubuntu 9.04
2. JDK 6 Update 18
3. "alexey" is my user name :)
HOWTO:
1. Download JDK at http://java.sun.com/javase/downloads/widget/jdk6.jsp
------------
Platform - "Linux"
Cick "Continue"
Login for download - click "Skip this Step"
Click "jdk-6u18-linux-i586.bin"
------------
2. Copy the downloaded file "jdk-6u18-linux-i586.bin" to the java folder
Chmod and run
chmod +x jdk-6u18-linux-i586.bin
./jdk-6u18-linux-i586.bin
------------------
If you have a problem with "Package libstdc++5 is not available"
solution:
create a symbolic link from libstdc++.so.6 to libstdc++.so.5
:/usr/lib$ ln -s libstdc++.so.6 libstdc++.so.5
------------------
Make linked directory
ln -s /home/alexey/java/jdk6 /home/alexey/java/jdk
Modified .bashrc file within your home folder with lines:
export JAVA_HOME=/home/alexey/java/jdk6/jdk
export PATH=$JAVA_HOME/bin:$PATH
To test write the command "java -version"
$ java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)
That's all.
No comments:
Post a Comment