From ArchWiki
Revision as of 04:09, 30 January 2009 by Llib (talk | contribs) (Firefox Symlinks for Arch 64)
Jump to navigation Jump to search


From Wikipedia:

Java is a programming language originally developed by Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture.


There are two Java Virtual Machines in the Arch repos that can be installed on your system — the OpenJDK open source implementation and Sun's closed source implementation. Arch recommends OpenJDK [1].

Installing the OpenJDK JVM

To be able to run Java programs, you can install OpenJDK from the extra repo. This also installs a Java Development Kit.

pacman -S openjdk6

Template:Box Note

Installing the Sun JVM

To be able to run Java programs, you can install the Sun JRE from the community repo:

pacman -S jre

Template:Box Note

To create Java programs, you can install the Sun JDK from the community repo:

pacman -S jdk

Firefox Symlinks for Arch 64

As of January 4, 2009, there exists a beta version of the JRE that works natively with 64-bit systems in the aur. (jre_beta).

After installing it, first check that $HOME/.mozilla/plugins exists as a directory. Then, make a symbolic link from /opt/java/jre/lib/amd64/ to $HOME/.mozilla/plugins/ Restart Firefox, and Java applets should now work.

NOTE: Java applets seem to work without making this symlink and the plugin appears in the Firefox add-on's as
- ST.x 13:20, 18 January 2009 (AEST)