# Java (Español)

This article or section is out of date.

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Java (Español)#)

Originario de Wikipedia article:

  Java es un lenguaje de programación desarrollado originalmente por Sun Microsystems lanzado en 1995 como un componente central de Sun Microsystems' Java Platform. El lenguaje se deriva en gran parte de la sintaxis de C y C++ pero tiene un modelo de objetos más sencillo y menos facilidades de bajo nivel. Las aplicaciones java son normalmente compiladas en códigos de bytes que pueden correr en alguna máquina virtual java (JVM por sus siglas en inglés) independientemente de la arquitectura de la computadora.

Arch Linux oficialmente soporta el paquete de código abierto OpenJDK versión 7 y 8. Todas las JVM pueden ser instaladas sin conflictos e intercambiadas antes de usar con la ayuda de un script `archlinux-java`. Otros ambientes java están disponibles en AUR pero no son oficialmente soportados.

## Instalación

Note: Installing a JDK will automatically pull its JRE dependency.
Note: After installation, the Java environment will need to be recognized by the shell (`$PATH` variable). This can be done by sourcing `/etc/profile` from the command line or by logging out/in again of a Desktop Environment.

Two common packages named java-runtime-common and java-environment-common are automatically pulled as dependency and provide environment file `/etc/profile.d/jre.sh`. This file contains all JVM common environment variables. Package java-runtime-common also provides a utility script `archlinux-java` that can display and change the default Java environment. This script sets links `/usr/lib/jvm/default` and `/usr/lib/jvm/default-runtime` to point at a valid non-conflicting Java environment installed and Java runtime in `/usr/lib/jvm/java-${JAVA_MAJOR_VERSION}-${VENDOR_NAME`}. Most executable provided by the Java environment set have direct links from `/usr/bin`, others are available in `$PATH`.

Warning: File `/etc/profile.d/jdk.sh` is not provided any more by any package.

The following packages are available in the official repositories:

### OpenJDK 7

Package name | Use
--- | ---
jre7-openjdk-headless | Java runtime environment (JRE) without any graphical tool - version 7
jre7-openjdk | Complete Java Runtime Environment (JRE) - version 7
jdk7-openjdk | Java Development Kit (JDK) - version 7
openjdk7-doc | OpenJDK javadoc - version 7
openjdk7-src | OpenJDK sources - version 7

### OpenJDK 8

Package name | Use
--- | ---
jre8-openjdk-headless | Java runtime environment (JRE) without any graphical tool - version 8
jre8-openjdk | Complete Java Runtime Environment (JRE) - version 8
jdk8-openjdk | Java Development Kit (JDK) - version 8
openjdk8-doc | OpenJDK javadoc - version 8
openjdk8-src | OpenJDK sources - version 8

### OpenJFX

JavaFX is also available from the official repositories. It requires the OpenJDK 8.

Package name | Use
--- | ---
java-openjfx | Java OpenJFX 8 client application platform (open-source implementation of JavaFX)
java-openjfx-doc | OpenJFX javadoc
java-openjfx-src | OpenJFX sources

Category:

- Programming languages (Español)

Hidden category:

- Pages or sections flagged with Template:Out of date