5.4. Installing Java on your computer

Visit the Java website to learn more about the version installed on your computer.

5.4.1. Windows

You can download the latest Java version from java.com.

5.4.2. Mac OS X

There are two versions of Fanurio for OS X.

  • Mac OS X 10.5 and 10.6

    The version that runs on Mac OS X 10.5 (Leopard) and Mac OS X 10.6 (Snow Leopard) needs Java but you don't have to do anything because Java is already installed on these systems. Use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac.

    If you are using Mac OS X 10.5, you may have Java 5 instead of Java 6 set by default. You can change the preferred Java version for applications by using the Java Preferences utility. This utility is installed at /Applications/Utilities/.

    1. Open the "/Applications/Utilities/" Folder.

    2. Double Click on "Java Preferences".

    3. In the "General" tab, check Java SE 6 and uncheck J2SE 5.0.

  • Mac OS X 10.7 and later

    The version that runs on Mac OS X10.7 (Lion) and later has Java included so you don't have to do anything about it.

5.4.3. Debian-based Linux (Ubuntu)

Ubuntu comes installed with OpenJDK but we recommend using Sun (Oracle) Java instead. Follow these steps to install it after you open a Terminal window:

How to install Sun (Oracle) Java on Ubuntu 11.10 and later

Starting with Ubuntu 11.10, Sun (Oracle) Java is no longer available from Ubuntu repositories. It must be dowloaded from the Oracle website.

  1. Download the tar.gz file for Linux from Oracle.

    This guide assumes the file is called jdk-7-linux-i586.tar.gz but depending on which version you decide to download, it may have a different name.

  2. Untar and copy it to /usr/lib/jvm/ where Java is installed. The new Java launcher will be /usr/lib/jvm/jdk1.7.0/jre/bin/java.

    sudo tar -zxvf ~/Downloads/jdk-7-linux-i586.tar.gz -C /usr/lib/jvm/

  3. Add the new Java installation to the Java alternative lists.

    sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/jre/bin/java 1

  4. Make the new Java installation the default one. Run the following command and choose the option that points to the new Java installation.

    sudo update-alternatives --config java

  5. Test it.

    java -version

How to install Sun Java on Ubuntu 11.4 and earlier

On Ubuntu 11.4 and earlier, Sun Java can be downloaded from Ubuntu repositories.

  1. On Ubuntu 10.4 (Lucid Lynx)

    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

    On Ubuntu 10.10 (Maverick Meerkat)

    sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"

    On Ubuntu 11.4 (Natty Narwhal)

    sudo add-apt-repository "deb http://archive.canonical.com/ natty partner"

    On Ubuntu 11.4 (Natty Narwhal)

    sudo add-apt-repository "deb http://archive.canonical.com/ natty partner"

  2. sudo aptitude update

  3. sudo aptitude install sun-java6-jdk

5.4.4. Other platforms

You can download the latest Java version from java.com.