Java
From ArchWiki
i18n |
---|
English |
Türkçe |
"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." [1]
Contents |
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.
OpenJDK JVM
To be able to run Java programs, you can install OpenJDK from the repositories. This also installs a Java Development Kit.
# pacman -S openjdk6
Sun JVM
To be able to run Java programs, you can install the Sun JRE from the repositories:
# pacman -S jre
You will need to reboot to use the java bash command.
To create Java programs, you can install the Sun JDK from the repositories:
# pacman -S jdk
BEA JRockit JIT JVM (+JDK)
You can also install JIT version of Java from the AUR. jrockit
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/libnpjp2.so to $HOME/.mozilla/plugins/libnpjp2.so. Restart Firefox, and Java applets should now work.