Translation(s): English - Français
Contents
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 |
v6 |
JRE:openjdk-6-jre |
compatible: |
yes |
A GPL2 version of Sun's JDK |
|
v7 |
JRE:openjdk-7-jre |
compatible: |
yes |
Available on most archs. |
|
GNU's GIJ/GCJ 4.2, 4.3 |
v5 |
no |
yes |
Installed by default when openjdk is not available. |
|
Sun Java 1.6 |
v6 |
JRE:sun-java6-jre |
no |
Sun's JVM |
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.
- java1-runtime, java2-runtime, java5-runtime, java6-runtime
- java1-runtime-headless, java2-runtime-headless, java5-runtime-headless, java6-runtime-headless
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
Java/Packaging - Tools for packaging Java apps and libraries in Debian
- Packaging Community
Debian Java Packaging Project @ Alioth
Teams/JavaPackaging pre-unstable/experimental repository
Java/DevJam -> Developer Java Meeting
Java/JavaVcs - general guidelines for using version control systems
Java/JavaSvn - how to use SVN to package Java stuff
Java/JavaGit - how to use GIT to package Java stuff
Java/QATools - ideas and tools for QA in our Java World
Java/ConfigurationStandard - WIP/RFC about the handling of common configuration options for Java applications
Work on specific application packages
Java/RequestedPackages - Apps people want to see packaged and which are in the process of being packaged.
TODO(wiki consolidation): maybe everything should be moved from here to Java/RequestedPackages?
User Documentation
Using Java in Debian
To install the default JRE (Java Runtime Environment) on your system, run:
apt-get install default-jre
To install the default JDK (Java Development Kit) on your system, run:
apt-get install default-jdk
Debian Java FAQ outside of this wiki
JavaFAQ - in this wiki, only one question so far
- Java in the Webbrowser: