Differences between revisions 1 and 33 (spanning 32 versions)
Revision 1 as of 2006-05-17 08:52:34
Size: 1860
Editor: MikeOConnor
Comment: Adding page for information about Sun's Java in non-free
Revision 33 as of 2014-01-28 07:09:12
Size: 2346
Comment: added link to archived version of java
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
==== Why is Sun's implementation of Java not included in Debian? ==== #language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~
----
## If your page gets really long, uncomment this Table of Contents
<<TableOfContents(2)>>
= Oracle/Sun Java =
== Installation ==
Line 3: Line 9:
Please refer to the [http://www.debian.org/doc/manuals/debian-java-faq/ch5.html#s-license-concerns Java Licensing FAQ] <<Anchor(Wheezy)>>
=== Debian 7 "Wheezy" ===
For DebianWheezy and later releases, Sun Java is no longer available in the repositories. However, [[JavaPackage|java-package]]
can be used to generate Debian packages from the upstream distributables of the JDK as provided by Oracle.
Line 5: Line 14:
==== What is the status of getting a Sun Java implementation into Debian? ==== To create packages for DebianWheezy and later, do the following.
Line 7: Line 16:
It was recently [http://www.sun.com/smi/Press/sunflash/2006-05/sunflash.20060516.4.xml announced] by [http://sun.com Sun] that Sun was changing the license by which Java may be redistributed:
{{{ ..."Developed in consultation with, and for use by, the various GNU/Linux communities, the new license allows distributors to ship Sun's Java SE 5.0 Java Development Kit (JDK) and Java Runtime Environment (JRE) as installable packages for their operating systems."...}}}
 * Install the DebianPkg:java-package package from [[http://www.debian.org/doc/debian-policy/ch-archive#s-contrib|contrib]] (see [[JavaPackage]]).
 * Download the appropriate JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html or chose an [[http://www.oracle.com/technetwork/java/javase/archive-139210.html|older version]] '''if''' your needs '''require''' you to run an '''insecure version'''
 * Type in the following command: {{{
$ make-jpkg <downloaded_jdk_file>
}}}
Line 10: Line 22:
As a result, Debian is now able to legally redistribute Sun ["JavaVirtualMachine"]s and ["JavaRuntimeEnvironment"]s in the NonFree section, as was [http://lists.debian.org/debian-devel-announce/2006/05/msg00010.html announced here]. 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 DebianBug:701782.
Line 12: Line 28:
NOTE: Sun has not yet released their implemntation of Java under an OpenSource license, however, allegedly [1] they may sometime in the future. As such, Sun's implementation of Java does not conform to the DebianFreeSoftwareGuidelines, and therefore cannot be included in Debian. More information is available on the JavaPackage page.
Line 14: Line 30:
[1] http://news.zdnet.com/2100-9593_22-6072760.html <<Anchor(Squeeze)>>
=== Debian 6.0 "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
}}}
Line 16: Line 41:
==== When will Sun's Java be available in Etch? ==== ''DebianPkg:sun-java6-plugin could be installed to activate JVM in your Web browser like Iceweasel''
Line 18: Line 43:
See: [http://bjorn.haxx.se/debian/testing.pl?package=sun-java5 Why is sun-java5 not in testing] == 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
}}}
Line 20: Line 49:
==== How do I install Java on DebianStable? ==== == See Also ==
 * JavaPackage
 * [[Java/OpenJDK]]
 * [[Java]]
Line 22: Line 54:
Run, ''apt-cache search java-virtual-machine''; which will list the available [JavaVirtualMachine]s. Pick one, and install it.


==== How do I install Sun's non-free Java implementation in DebianStable or DebianTesting? ====

Use JavaPackage.


=== See Also ===

  * http://www.debian.org/doc/manuals/debian-java-faq/
== External Links ==
 * http://forums.debian.net/viewtopic.php?f=16&t=77140
----
CategoryJava

Translation(s): none


Oracle/Sun Java

Installation

Debian 7 "Wheezy"

For 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.

Debian 6.0 "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

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