Download the bin file from the java website:
http://java.sun.com/products/archive/
Install the package as root:
su - root
Change the execute rights:
chmod 700 jdk_*.bin
Execute the bin:
./jdk_*.bin
Java will be installed in /usr/java/
export JAVA_HOME=/usr/java/jdk...
export PATH=$JAVA_HOME/bin:$PATH
Now you can check if everthing is ok by:
which java
java -version
Did this post help you in any way can you please leave a comment? This will motivate me writing more posts.
Thursday, April 23, 2009
Subscribe to:
Post Comments (Atom)
or, with just one command, no manual downloading:
ReplyDeletesudo apt-get install sun-java6-jdk
Well done Dude. Blogs like these really helps
ReplyDeleteGood reaading your post
ReplyDelete