Java 1.5 installation for Ubuntu 9.1 and later


Java5 is REQUIRED by the android build system to compile.

sudo gedit /etc/apt/sources.list


add to the bottom of the file file

deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse


Save the file and exit

sudo apt-get update
sudo apt-get install sun-java5-jdk
sudo update-alternatives --config java


You may or may not need to select java5 if you already have 6 installed on that last prompt. Once that is completed remove the lines previously added.

sudo gedit /etc/apt/sources.list


When the file opens delete the below lines and save.

deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse


 
android_project/build/dev_env/java5.txt · Last modified: 2010/06/11 18:09 by sniffle
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.3
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki