Translation(s): English - Français

(!) ?Discussion


Waving Duke

Java and Debian

Debian provides several Java implementations. Each of them have a development environment (JDK) and a runtime (known as JRE, or Java Virtual Machines JVM). Here's a list of Java environment. Just run aptitude search "?provides(java-runtime)" on your system to list available packages).

The default JRE/JDK installed in Debian isn't the same for all architecture. Check the dependency of the package default-jdk (or run apt-cache depends default-jdk on a system).

Origin

Spec.

Packages

Plugin

Free

Comments

OpenJDK

v6

JRE:openjdk-6-jre
JDK:openjdk-6-jdk

compatible:
icedtea6-plugin

:-)

A GPL2 version of Sun's JDK !
Available on most archs.
Installed by default where available.

GNU's GIJ/GCJ 4.2, 4.3

v5

JRE:gij (java-gcj-compat...)
JDK:gcj

Lenny but no longer in squeeze

:-)

Installed by default when openjdk is not available.

Sun Java 1.6

v6

JRE:sun-java6-jre
JDK:sun-java6-jdk

yes

:-(

Sun's JVM !
Latest release
Available on i386 and amd64 only. http://sylvestre.ledru.info/blog/sylvestre/2011/08/26/sun_java6_packages_removed_from_debian_u

Sun Java 1.5

v5

JRE:sun-java5-jre
JDK:sun-java5-jdk

yes

:-(

Not available in squeeze
Sun's JVM !
Compatible with older Java programs
Available on i386 and amd64 only.

The following JRE/JDK aren't available in Debian anymore as of DebianSqueeze:

Understanding Java Virtual packages names

There are several virtual packages used in Debian for Java. These cover runtime compatibility and come in two flavours; headless (omits graphical interfaces) and normal. A dependency on javaX-runtime means that the package can work with any runtime which implements version X. Runtimes should provide all virtual packages which they support, so openjdk 6 provides java2-runtime, java5-runtime and java6-runtime.

Switching

Most java-related executables, multiple of which can be installed at any time, are managed by the 'alternatives' system. Instead of managing each alternative separately, you can update them all in one go with 'update-java-alternatives' from java-common

Developers - Java packaging work in Debian

general information and coordination

Work on specific application packages

TODO(wiki consolidation): maybe everything should be moved from here to Java/RequestedPackages?

User Documentation

Using Java in Debian

To install the default JRE on your system, run:

apt-get install default-jre

See also


CategoryJava