Translation(s): Français

(!) ?Discussion


JRE / JDK under Debian

Debian provides many Java implementation. 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. (Run aptitude search "?provides(java-runtime)" on your system to list available packages).

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.

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.

Other JRE/JDK: It is possible to package and install other JRE/JDK from (IBM, Sun) using JavaPackage:

The following JRE/JDK aren't available in Debian anymore (as of DebianLenny) :

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