JDK on Ubuntu

From KevinWiki

Revision as of 19:38, 11 October 2008 by Kevin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Installation of 32 bit JDK on 64 bit Ubuntu Linux

  • 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.

See Update-alternatives

Personal tools