Installing Sun Java On Ubuntu/Debian
Download latest Java JDK from http://java.sun.com/j2se/1.5.0/download.jsp
(being sure not to download the .rpm, but rather the .bin)
install java-package with apt-get
(that includes binutils, fakeroot)
(Note also that java-package is in “multiverse”, so your repository list /etc/apt/sources.list needs to have that enabled)
make debian java package:
Disregarding the errors, in a tmp dir where we have copied the downloaded jdk, we do (without using sudo):
fakeroot make-jpkg jdk-1_5_0_05-linux-i586.binwhich, after ok’ing the license and extracting stuff, and trundling,after a while creates sun-j2sdk1.5_1.5.0+update06_i386.deb
then we install our newly made package, this time with sudo:
sudo dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb“Once you’ve installed it, you’ll be up and running with the latest jdk: your JAVA_HOME is now, for example, /usr/lib/j2sdk1.5-sun. Get a command line, and enter java -version: you should see something like:
Now you have java :)
No comments:
Post a Comment