Package:Java SE Development Kit (JDK)

Revision as of 19:11, November 2, 2014 by Duncan.britton (Talk | contribs)


No contents found at URL
Source Repository:Gentoo Portage Tree

Summary: Oracle's Java SE Development Kit -- Java runtime, compiler, etc. No contents found at URL

Java SE Development Kit (JDK)

You can install the free icedtea jdk or Oracle's version. Therefore we have a virtual package called virtual/jdk. By default it will install the Oracle version.


# emerge -a virtual/jdk

If you receive a message similar to the following, you will have to accept the Oracle java license to emerge the oracle-jdk-bin:

# emerge virtual/jdk
Calculating dependencies... done!
[ebuild  N     ] dev-java/java-config-wrapper-0.16 
[ebuild  N     ] sys-apps/baselayout-java-0.1.0 
[ebuild  N     ] app-admin/eselect-java-0.1.0 
[ebuild  N     ] dev-java/java-config-2.2.0-r1000   PYTHON_ABIS="2.7 3.3 -2.6 -3.1 -3.2 -3.4 (-3.5)" 
[ebuild  N     ] dev-java/oracle-jdk-bin-  USE="X alsa fontconfig nsplugin (-aqua) -derby -doc -examples -jce -pax_kernel (-selinux) -source" 

The following license changes are necessary to proceed:
 (see "package.license" in the portage(5) man page for more details)
# required by oracle-jdk-bin (argument)
>=dev-java/oracle-jdk-bin- Oracle-BCLA-JavaS

To accept the required license, create the directory /etc/portage/package.license if it does not already exist.

# mkdir /etc/portage/package.license

After we create this directory, portage will read files that we create inside of it to see that we have accepted licenses required to install certain packages. To accept the license for oracle-jdk-bin, create a file called something like /etc/portage/package.license/oracle-jdk-bin and add the line dev-java/oracle-jdk-bin Oracle-BCLA-JavaS to it:

# tee /etc/portage/package.license/oracle-jdk-bin <<< "dev-java/oracle-jdk-bin Oracle-BCLA-JavaS"

Now you can emerge oracle-jdk-bin

# emerge virtual/jdk

After the installation finishes, you may want to check and see if you can use the jdk. You can do so by issuing the following command:

$ java


This page is in need of updates.