Package:Java SE Development Kit (JDK)

From Funtoo
Jump to: navigation, search

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.


Jdk is Package:Java SE Runtime Environment (JRE) & additional software for java development.

Installation

# emerge dev-java/oracle-jdk-bin

Configuration

JVM

list java virtual machines:

# eselect java-vm list

set java virual machine os oracle jdk:

# eselect java-vm set system oracle-jdk-bin-1.7

Browser Plugin

list java browser plugins:

# eselect java-nsplugin list

set java browser plugin to oracle jdk:

32bit
# eselect java-nsplugin set 32bit oracle-jdk-bin-1.7
64bit
# eselect java-nsplugin set 64bit oracle-jdk-bin-1.7

Runtime

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

$ java -jar file.jar

media