Differences between revisions 28 and 29
Revision 28 as of 2013-02-27 04:58:23
Size: 1812
Editor: GeoffSimmons
Comment: Use header from DefaultTemplate, drop Java5, drop outdated OpenJDK information, link JavaPackage, sort, formatting, FAQ pages are linked from main Java portal.
Revision 29 as of 2013-02-28 05:24:34
Size: 1810
Editor: GeoffSimmons
Comment: Adjust header levels.
Deletions are marked like this. Additions are marked like this.
Line 43: Line 43:
== See Also == = See Also =

Translation(s): none


Installation

Sun Java 1.6

Squeeze

For DebianSqueeze Sun Java is available in non-free. Either install the Java development kit:

  • # apt-get install sun-java6-jdk

or the Java runtime environment:

  • # apt-get install sun-java6-jre

sun-java6-plugin could be installed to activate JVM in your Web browser like Iceweasel

Wheezy

For DebianWheezy and later, 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.

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


CategoryJava