How to install jdk1.5 into debian testing

  • first, download the jdk-1_5_0_08-linux-i586.bin file from sun.
  • second, add following 2 lines into /etc/apt/sources.list

deb debian/
deb-src debian/

  • third, following command

#apt-get update
#apt-get install java-package
%make-jpkg jdk-1_5_0_08-linux-i586.bin
#dpkg -i sun-j2sdk1.5_1.5.0+update08_i386.deb

  • confirm you've installed java & jdk

%java -version
%javac -version

That's all I did to install java into Debian GNU/Linux testing for i386.

note: DO NOT install eclipse from apt!! if you do

#apt-get install eclipse

then gcj java executable and jvm and compiler will be installed. They are TERRIBLE.