Difference between pages "Package:Java SE Runtime Environment (JRE)" and "Package:Java SE Development Kit (JDK)"

(Difference between pages)
m
 
m
 
Line 1: Line 1:
 
{{Ebuild
 
{{Ebuild
|Summary=Oracle's Java SE Runtime Environment (JRE) - For running Java applications.
+
|Summary=Oracle's Java SE Development Kit -- Java runtime, compiler, etc.
|CatPkg=dev-java/oracle-jre-bin
+
|CatPkg=dev-java/oracle-jdk-bin
 
|Maintainer=
 
|Maintainer=
 
|Homepage=http://www.oracle.com/technetwork/java/javase/overview/index.html
 
|Homepage=http://www.oracle.com/technetwork/java/javase/overview/index.html
 
}}
 
}}
  
JRE is oracles java runtime environment.  {{package|dev-java/oracle-jdk-bin}} also includes JRE.  This package is for running java programs.
+
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 versionJdk is {{package|dev-java/oracle-jre-bin}} & additional software for development.
  
 +
== Installation ==
 
{{console|body=
 
{{console|body=
###i## emerge dev-java/oracle-jre-bin
+
###i## emerge -a virtual/jdk
 
}}
 
}}
  
=== Runtime ===
+
If you receive a message similar to the following, you will have to accept the Oracle java license to emerge the {{c|oracle-jdk-bin}}:
To run java jar packages:
+
{{console|body=
{{console|body=###i## java -jar package-to-run.jar}}
+
###i## emerge virtual/jdk
 +
Calculating dependencies... done!
 +
[##g##ebuild  N    ##!g##] ##g##dev-java/java-config-wrapper-0.16 ##!g##
 +
[##g##ebuild  N    ##!g##] ##g##sys-apps/baselayout-java-0.1.0 ##!g##
 +
[##g##ebuild  N    ##!g##] ##g##app-admin/eselect-java-0.1.0 ##!g##
 +
[##g##ebuild  N    ##!g##] ##g##dev-java/java-config-2.2.0-r1000  ##!g## PYTHON_ABIS="##r##2.7 3.3##!r## ##bl##-2.6 -3.1 -3.2 -3.4 (-3.5)##!bl##"
 +
[##g##ebuild  N    ##!g##] ##g##dev-java/oracle-jdk-bin-1.8.0.11 ##!g## USE="##r##X alsa fontconfig nsplugin##!r## ##bl##(-aqua) -derby -doc -examples -jce -pax_kernel (-selinux) -source##!bl##"
 +
 
 +
The following ##r##license changes##!r## are necessary to proceed:
 +
(see "package.license" in the portage(5) man page for more details)
 +
# required by oracle-jdk-bin (argument)
 +
##g##>=dev-java/oracle-jdk-bin-1.8.0.11 Oracle-BCLA-JavaS##!g##
 +
}}
 +
 
 +
To accept the required license, create the directory {{c|/etc/portage/package.license}} if it does not already exist.
 +
{{console|body=
 +
###i## 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 {{c|oracle-jdk-bin}}, create a file called something like {{c|/etc/portage/package.license/oracle-jdk-bin}} and add the line {{c|dev-java/oracle-jdk-bin Oracle-BCLA-JavaS}} to it:
 +
{{console|body=
 +
###i## tee /etc/portage/package.license/oracle-jdk-bin <<< "dev-java/oracle-jdk-bin Oracle-BCLA-JavaS"
 +
}}
 +
 
 +
Now you can emerge {{c|oracle-jdk-bin}}
 +
{{console|body=
 +
###i## 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:
 +
{{console|body=
 +
$##i## java
 +
}}
  
 +
== media ==
 +
{{#widget:YouTube|playlist=PLD22A26A9CD8A1A51}}
 
{{PageNeedsUpdates}}
 
{{PageNeedsUpdates}}
 
{{EbuildFooter}}
 
{{EbuildFooter}}

Revision as of 11:33, January 30, 2015

dev-java/oracle-jdk-bin


Source Repository:Repository:Funtoo Overlay

http://www.oracle.com/technetwork/java/javase/overview/index.html

Summary: Oracle's Java SE Development Kit -- Java runtime, compiler, etc.

Use Flags

derby
Enable Installation of Bundled Derby (Java DB)
jce
Enable Java Cryptographic Extension Unlimited Strength Policy files
pax_kernel
Use paxctl to mark the JVM binaries.

News

Drobbins

ARM Rebuild

ARM systems will use new stage3's that are not compatible with earlier versions.
2015-06-27 by Drobbins
Drobbins

ABI X86 64 and 32

Funtoo Linux has new 32-bit compatibility libraries inherited from Gentoo. Learn about them here.
2015-06-18 by Drobbins
Drobbins

Pre-built kernels!

Funtoo stage3's are now starting to offer pre-built kernels for ease of install. read more....
2015-05-12 by Drobbins
More...

Java SE Development Kit (JDK)

Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.


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. Jdk is Package:Java SE Runtime Environment (JRE) & additional software for development.

Installation

# 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-1.8.0.11  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-1.8.0.11 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


media