[Gentoo Linux] Installing and configuring Java

Last update on August 5, 2009 09:25 AM by jak58
Published by jak58

[Gentoo Linux] Installing and configuring Java






The Gentoo Linux distribution offers a range of JRE and JDK environments. To install them simply procede as follows:

Installing JDK


To start the installation you must run the command:
# emerge virtual/jdk

or
# emerge virtual/jre


Note that: The installation of the JDK also includes the installation of the JRE.

Configuring the JVM


Use the command
# java-config --list-available-vms 
The following VMs are available for generation-2:
1)	Sun JDK 1.5.0.17 [sun-jdk-1.5]

*)	Sun JDK 1.6.0.07 [sun-jdk-1.6]


</li></ul>
L'(*) indicates the virtual machine in use.
To change the virtual machine system must choose among the list of existing ones:
# java-config --set-system-vm sun-jdk-1.6
Best answers for « Installing and configuring Java » in :
Installing Java under Ubuntu Show Installing Java under Ubuntu Issue Solution Issue By default, Firefox does not come with Java. Solution Open a terminal (Application Menu/ Accessories/ Terminal) and type in: sudo aptitude install sun-java6-jre sun-java6...
Installing a light HTTP Proxy Server (TINYPROXY) Show Installing a light HTTP Proxy Server (TINYPROXY) Installation Configuration Port Address Authorisation Logs Other Squid is a proxy server for bigger networks (enterprises, etc..) Can be also installed on smaller local...
Installing DB2 Express V9 ShowInstalling DB2 Express V9 Prerequisites Installation Configuration Here below is a guide for the installation of DB2 Express V9.5 available from IBM. Prerequisites First of all download the version to install from the following...
The autocompletion C/C + + in vim ShowThe autocompletion C/C + + in vim Installation Configuration Use Links This tutorial is for people who use Vim under Windows or Linux. Here, I will instead direct the tutorial for those running Linux. Introduction The auto...
Scanning a Debian-based network with Nessus ShowScanning a Debian-based network with Nessus Introduction Installation Configuration Starting Nessus Server Using the Nessus client Notes Nessus is a network scanner that tries to detect potential security vulnerabilities in the...
Download Windows Installer ShowMicrosoft WindowsIinstaller is a service of installation and application configuration, allowing to manage the applications containing the MSI extension MSI. Windows Installer 3.1 is a secondary update of Windows Installer 3.0 published in...
Intranet - Installing a mail server ShowIntroduction to installation The most commonly used e-mail server in Linux is Sendmail; however, as it is very hard to configure, we will use Qmail, an alternative e-mail server, instead. Qmail is made up of a group of programs that work with...
Installing a network adapter ShowPurpose The purpose of this article is to set up a network to enable data exchanges between computers, resource sharing and network games. Is it therefore necessary to install a network card in each computer that may be part of the local area...
Installing a network card ShowGoal The goal is to set up a network in order to exchange data or play games on the network. Thus, it is necessary to install a network card on every computer that may become part of the LAN. The purpose of this tutorial is to help you to install a...