A few words of thanks would be greatly appreciated.

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 [sun-jdk-1.5]
  • ) Sun JDK [sun-jdk-1.6]

    • 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

A few words of thanks would be greatly appreciated.

Ask a question
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team

Published by . Latest update on by jak58.

This document, titled "Gentoo Linux - Installing and configuring Java," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).