Linux: Installation methods for certain popular flavors of Linux are listed below. If your distribution is not listed, follow the instructions specific to your package manager or install it manually here.

Gentoo: emerge dev-java/oracle-jdk-bin

Archlinux: pacman -S jdk7-openjdk

Ubuntu/Debian: apt-get install openjdk-7-jdk

Fedora: yum install java-1.7.0-openjdk

Set up the environment.

Windows: Set environment variables for the JDK.

Go to Control Panel\System and Security\System, and click on Advanced System Settings on the left-hand side.