3/30/09

Install Java for Ubuntu 8.04

- First you will need to add all the extra repositories for Ubuntu. (ie Multiverse, Universe...)

$ sudo apt-get update



- After install the required packages:

$ sudo apt-get install fakeroot java-package java-common



- And finally, just tell it to install java :)

$ sudo apt-get install sun-java5-jdk



After this the rest of the process will display a dialog that will require you to accept the license agreement. When you do, the rest of the setup will happen on its own.

When you're on the command prompt type

$ java -version
$ sudo bash -c "echo JAVA_HOME=/usr/lib/jvm/java-6-sun/ >> /etc/environment"

or

$sudo gedit /etc/environment

Install Ant
$sudo apt-get install ant

Install Subversion
$sudo apt-get install subversion

No comments: