Howto install Sun Java on Debian Sarge
This small guide shows Howto install the original Sun Java 2 Platform Standard Edition 5.0 JRE (Java Runtime Environment) and JDK (Java Developer Kit) on Debian 3.1 (Sarge)
First of all we’ll need to download the latest Sun Java release from java.sun.com.
Download the file called “Linux self-extracting file” – “jdk-1_5_0_06-linux-i586.bin”
Now we need to use some utilities to convert the self-extracting file into a debian package.
debian:~# apt-get install fakeroot java-package Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: fakeroot java-package 0 upgraded, 2 newly installed, 0 to remove and 11 not upgraded. Need to get 0B/90.1kB of archives. After unpacking 471kB of additional disk space will be used. Selecting previously deselected package fakeroot. (Reading database ... 42761 files and directories currently installed.) Unpacking fakeroot (from .../fakeroot_1.2.10_i386.deb) ... Selecting previously deselected package java-package. Unpacking java-package (from .../java-package_0.24_all.deb) ... Setting up fakeroot (1.2.10) ... Setting up java-package (0.24) ... debian:~#
And then we are ready to covert the self-extracing bin file into a debian package.
user@debian:~$ fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.XXXXZf6Frs
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
Detected product:
Java(TM) Software Development Kit (J2SDK)
Standard Edition, Version 1.5.0+update06
Sun Microsystems(TM), Inc.
Is this correct [Y/n]:
Then we accept all the legal stuff and now the have just a single deb
The Debian package has been created in the current directory. You can install the package as root (e.g. dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb). Removing temporary directory: done
Now install the newly created deb as root by typing
debian:~# dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb
user@debian:~$ java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
Related posts:
- Howto install Java on Debian Sarge
- Howto Install Sun Java on Debian Etch
- Howto PHP / Java bridge on Debian
- Ubuntu Howto: Install Sun Java
- Howto install Xen on Debian Sarge (stable)
- Howto: Install Ruby and Rails on Debian or Ubuntu
- Howto Install Oracle on Debian
- dos2unix on Ubuntu and Debian
- Howto duplicate a debian setup
- Ubuntu Howto: Install Oracle
Popular Related Items »
Incoming search terms
- java deb download
- No matching plugin was found
- dpkg-reconfigure java
- java deb
- jdk deb
- make-jpkg No matching plugin was found
- No matching plugin was found Removing temporary directory: done
- fakeroot no matching plugin was found
- java download deb
- download java deb
- fakeroot make-jpkg No matching plugin was found
- dpkg reconfigure java
- sun java deb
- fakeroot java
- java no matching plugin was found
- java fakeroot
- make-jpkg no matching plugin
- no matching plugin was found jpkg
- No matching plugin was found java debian
- sun-java-bin deb
- java debian No matching plugin was found
- no matching plugin was found fakeroot
- debian java No matching plugin was found
- debian select java
- install jdk ubuntu fakeroot
- fakeroot no matching plugin
- debian install java no matching plugin was found
- no matching plugin was found removing temporary directory done
- howto install sun java 1 5 ubuntu 9 10
- debian fakeroot no matching plugin was found
- reconfigure java
- sarge java
- download java Version 1 5 0 (build 1 5 0_06-b05)
- java deb package
- Java JDK deb
- download j2sdk1 5
- java-package No matching plugin was found
- debian java deb
- install java on debian
- baixar java deb
- java make-jpkg No matching plugin was found
- debian sun java no matching plugin was found
- debian reconfigure java
- debian sun java
- debian no matching plugin was found

Larry Hand said,
April 17, 2006 @ 8:01
One last step I needed because I already had other javas installed:
Set the alternatives to use the Sun Java runtime
# update-alternatives –config java
And select the option to use /usr/lib/j2sdk1.5-sun/bin/java
Then java -version works.
HTH.
Christopher Chatfield said,
May 1, 2006 @ 3:53
I had error message after running fakeroot make-jpkg jdk*
After attempting to Load the plugins
:~/javatmp$ fakeroot make-jpkg java.bin
Creating temporary directory: /tmp/make-jpkg.XXXXrqSnMa
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
No matching plugin was found.
Removing temporary directory: done
Christopher Chatfield said,
May 1, 2006 @ 4:04
Sorted!! the problem had to download the package again this time
I kept the file name worked fine.