Java (Italiano)

From ArchWiki
Revision as of 14:10, 31 January 2011 by Lorenzog (Talk | contribs) (Creazione pagina italiana)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Tango-preferences-desktop-locale.pngThis article or section needs to be translated.Tango-preferences-desktop-locale.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Java (Italiano)#)
Nota: Questo articolo è in fase di traduzione. Seguite per ora le istruzioni della versione inglese.

"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]


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.


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

Note: Installing either openjdk6 or jre will also install the Java plugin for Firefox. However, in case you experience any problems with the Java plugin, you can try the solution suggested for the Firefox Flash plugin: Flash#Plugins_are_installed_but_not_working
# pacman -S openjdk6
Note: If you use a non-reparenting window manager, you should uncomment the line in /etc/profile.d/ (don't forget to export it also)


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

# pacman -S jre

You will need to log out and login again, or add /opt/java/jre/bin/ to $PATH to use the java bash command.

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

# pacman -S jdk
Note: For Sun Java, you will need to source /etc/profile in order to for the JAVA_HOME path to point to the correct place
# source /etc/profile


You can also install JIT version of Java from the AUR. jrockit

Java sound with Pulseaudio

By default, Java and Pulseaudio don't get along very well with each other, but this is easy to fix using padsp.

(These paths are correct for Sun's Java, you will need to change the paths for OpenJDK)

First, rename the java binary to java.bin

# mv /opt/java/jre/bin/java /opt/java/jre/bin/java.bin

Then, create a new launcher script at /opt/java/jre/bin/java

padsp /opt/java/jre/bin/java.bin "$@"

Finally, make the launcher script executable

# chmod +x /opt/java/jre/bin/java

You will need to redo this process on each update of Java.

You can also try replacing padsp with aoss, which can also fix it under standard ALSA as well as in Pulse, do what works best. I must warn everyone that these hacks sometimes work perfect, but are sometimes very unstable as well.