Contents
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 |
compatible: |
|
A GPL2 version of Sun's JDK ! |
GNU's GIJ/GCJ 4.2, 4.3 |
v5 |
Lenny but no longer in squeeze |
|
Installed by default when openjdk is not available. |
|
Sun Java 1.6 |
v6 |
JRE:sun-java6-jre |
|
Sun's JVM ! |
|
Sun Java 1.5 |
v5 |
JRE:sun-java5-jre |
|
Not available in squeeze |
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) :
Sun's JRE <1.6 (as of Squeeze)
- kaffe (not in Squeeze)
- jamvm (not in Squeeze)
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
?Java/RoadMap
- Packaging Community
Debian Java Packaging Project @ Alioth
Teams/JavaPackaging pre-unstable/experimental repository
Java/DevJam -> Developer Java Meeting
?Java/ResolveJavaNaming - Java Trademark Issues.
?CommonJavaPackaging - Coordination not to reinvent the wheel...
Java/JavaSvn - how to use SVN to package Java stuff
Java/JavaGit - how to use GIT to package Java stuff
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 on your system, run :
apt-get install default-jre
Debian Java FAQ outside of this wiki
JavaFAQ - in this wiki, only one question so far
Building Java apps/libs on Debian (... with free tools): ?Java/Building/JOnAS
- Java in the Webbrowser: