Java under Debian

The easiest way

Java is now available as package in the non-free repository :

  • apt-get install sun-java5-jre
  • apt-get intall sun-java5-jdk

The hardest way

The debian package java-package is an utility for building Java(TM) 2 related Debian packages from the binary distribution (from sun or blackdown) :

Install the java-package:

apt-get install java-package debhelper fakeroot

Download the wanted j2re or j2sdk on the site.

Create the package

fakeroot make-jpkg <downloadedfile.bin>

Install the obtained debian package:

dpkg -i obtained_debian_package.deb

If you have dependency problems, check you're using the latest release and you're using the right distribution (testing / unstable, etc ..).

java_under_debian.txt · Last modified: 2007/04/04 10:36 by
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki