JDK on Ubuntu
From KevinWiki
Installation of 32 bit JDK on 64 bit Ubuntu Linux
- Download a 32 bit JDK from http://java.sun.com
- Install java-package to build deb file from the JDK bin file downloaded.
$ sudo apt-get install java-package
- Build deb file.
$ DEB_BUILD_GNU_TYPE=i486-linux-gnu DEB_BUILD_ARCH=i386 fakeroot make-jpkg jdk-6u7-linux-i586.bin
- Install the deb file (e.g.
sun-j2sdk1.6_1.6.0+update7_amd64.deb
) just created.
It can be done by either typing
$ sudo dpkg -i sun-j2sdk1.6_1.6.0+update7_amd64.deb
or double-clicking the sun-j2sdk1.6_1.6.0+update7_amd64.deb
file
- Change the JDK currently used to the one just installed.