Java

From ArchWiki
Revision as of 02:22, 18 January 2009 by ST.x (Talk | contribs) (Firefox Symlinks for Arch 64 - regarding symlink)

Jump to: navigation, search


Introduction

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.

Installation

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 (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)