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 .
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
Installing the Sun JVM
To be able to run Java programs, you can install the Sun JRE from the community repo:
pacman -S jre
To create Java programs, you can install the Sun JDK from the community repo:
pacman -S jdk
As of January 4, 2009, there exists a beta version of the JRE that works natively with 64-bit systems (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/libnpjp2.so to $HOME/.mozilla/plugins/libnpjp2.so. 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 libnpjp2.so
- ST.x 13:20, 18 January 2009 (AEST)