• Happy Coding

manual of the day… Install Sun Java under Ubuntu Linux

Install Sun Java under Ubuntu Linux

After i had problems with the normal Java Debian-Package i decided to install Java by myself.

Download a version of Java

I downloaded for example version 1.4.2 (http://java.sun.com/j2se/1.4.2/download.html)

Install fakeroot and java-package

We need these tools for building a Debian package out of the bin-file of Sun.

sudo apt-get install fakeroot java-package

Build and install the Debian package

fakeroot make-jpkg j2sdk-1_4_2_16-linux-i586.bin

Set this java version as the main version

sudo update-alternatives --config java
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Ma.gnolia
  • MisterWong
  • Reddit
  • SphereIt
  • StumbleUpon
  • Technorati
  • TwitThis
  • Yigg
  • LinkedIn
  • Print this article!
  • Tumblr
  • Pownce
Share your opinion! Post your thoughts.