Monday, June 20, 2011

Install Sun Java on Ubuntu 11.04

1. sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

2. sudo apt-get update

3. sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

4. set JAVA_HOME=/usr/lib/jvm/java-6-sun

5. set PATH=$JAVA_HOME/bin:$PATH

6. java -version

No comments: