Sunday, May 29, 2011

Java in Ubuntu 11

To get java installed perform these:
  • sudo add-apt-repository 'deb http://archive.canonical.com/ lucid partner'
  • sudo apt-get update
  • sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin
  • sudo update-java-alternatives -s java-6-sun
You can verify everything went smooth with:
  • java -version
  • ls -lahF /etc/alternatives/java
Note: I'm using the "Lucid" code name for the repository because it simply worked. You should find the tag for your version.

    No comments:

    Post a Comment