Differences between revisions 34 and 35
Revision 34 as of 2016-04-01 15:18:33
Size: 1926
Editor: ?Fabio
Comment: update after squeeze EOL
Revision 35 as of 2016-12-27 17:38:12
Size: 1957
Editor: Diego Alonso
Comment: added spanish translation link
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~ ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[es/Java/Sun|español]] -~

Translation(s): English - español

Oracle/Sun Java


Since DebianWheezy and later releases, Sun Java is no longer available in the repositories. However, java-package can be used to generate Debian packages from the upstream distributables of the JDK as provided by Oracle.

To create packages for DebianWheezy and later, do the following.

Note that some software requires the JDK to be installed in a specific location. For example, to build Android Gingerbread or later, JDK 6 must be used, and the Android build system expects JDK 6 to be installed in /usr/lib/jvm/java-6-sun. With the generated package, JDK 6 is installed in /usr/lib/jvm/j2sdk1.6-oracle. Simply create a symlink from /usr/lib/jvm/java-6-sun -> /usr/lib/jvm/j2sdk1.6-oracle. Creating the symlink automatically has been requested at 701782.

More information is available on the JavaPackage page.

Configure the default Java version

Sun recommends you update the alternatives system to have Sun's tools as the default:

  • # update-java-alternatives -s java-6-sun

See Also