[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs

[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
es:howtos:software:java [2019/08/22 14:47 (UTC)] – [OpenJDK] slackwarespanoles:howtos:software:java [2024/07/25 15:05 (UTC)] (actual) – [Java no encontrado después de la instalación] antares_alf
Línea 1: Línea 1:
-<note warning>Por traducir - [[wiki:user:slackwarespanol|Victor]] + 
-</note>+
 ====== Java en Slackware ====== ====== Java en Slackware ======
  
Línea 74: Línea 74:
 Si decide que desea compilar OpenJDK desde el código fuente, utilice [[http://slackware.com/~alien/slackbuilds/openjdk/build/README.txt|README]] como guía. Si decide que desea compilar OpenJDK desde el código fuente, utilice [[http://slackware.com/~alien/slackbuilds/openjdk/build/README.txt|README]] como guía.
  
-===== Java not found after installation =====+===== Java no encontrado después de la instalación =====
  
-HelpI installed Java but when I try to use itI get "command not found"!+¡AyudaInstalé Java, pero cuando trato de usarlo, aparece "command not found".
  
-What you need to know is that the Java package installs two files in your profile directory "''/etc/profile.d/''"Depending on which login shell you useone of these is executed whenever you loginThe profile script adds the Java directory to the $PATH variable (so that you can start the ''java'' commandand sets the $JAVA_HOME variable (needed by other programs that try to locate your Java installation).+Lo que necesita saber es que el paquete Java instala dos archivos en su directorio de perfil "'' /etc/profile.d/ ''"Según el shell de inicio de sesión que utiliceuno de estos se ejecuta cada vez que inicia sesiónEl script de perfil agrega el directorio Java a la variable $ PATH (para que pueda iniciar el comando '' java ''y establece la variable $JAVA_HOME (necesaria para otros programas que intentan localizar su instalación de Java).
  
-Here follows the content of such a script on 64-bit Slackware: <code>+Aquí sigue el contenido de tal script en Slackware de 64 bits: <code>
 #!/bin/sh #!/bin/sh
 export JAVA_HOME=/usr/lib64/java export JAVA_HOME=/usr/lib64/java
 export MANPATH="${MANPATH}:${JAVA_HOME}/man" export MANPATH="${MANPATH}:${JAVA_HOME}/man"
 export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin" export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
-</code> This means that right after installing the Java packageyou need to logout and login again in order to load the Java profile script. If it is inconvenient to logout right nowthere is an alternativeyou can "//[[wp>Dot_(Unix)|source]]//" the script by running the following command in your consoleor in every terminal where you want to use Java without logging out and in again (example for OpenJDK and a bash-compatible shell): <code>+</code> Esto significa que inmediatamente después de instalar el paquete Java, debe cerrar sesión y volver a iniciar sesión para cargar el script del perfil de JavaSi resulta inconveniente cerrar sesión en este momentoexiste una alternativausted puede "//[[wp>Dot_(Unix)|optener]]//" el script ejecutando el siguiente comando en su consolao en cada terminal donde desee usar Java sin cerrar sesión y volver a iniciarla (por ejemplo para OpenJDK y un shell compatible con bash): <code>
 . /etc/profile.d/openjdk.sh . /etc/profile.d/openjdk.sh
-</code> Note the dot character at the start of the linethat dot is the "sourcecommand of the shell. +</code> Tenga en cuenta el carácter de punto al comienzo de la líneaese punto es el comando "fuentedel shell. 
  
-====== Sources ====== 
-  * Original source: [[http://slackware.org.uk/slackware/slackware64-current/extra/java/README|java.SlackBuild readme]] 
-  * Contributions by [[wiki:user:sycamorex|sycamorex]] 
-  * Contributions by [[wiki:user:alienbob|Eric Hameleers]] 
  
 +====== Fuentes ======
 +   * Fuente original: [[http://slackware.org.uk/slackware/slackware64-current/extra/java/README|java.SlackBuild readme]]
 +   * Contribuciones de [[wiki: user: sycamorex | sycamorex]]
 +   * Contribuciones de [[wiki: user: alienbob | Eric Hameleers]]
 +   * Traducido por [[wiki: user: slackwarespanol | Víctor]]  2019/08/22 14:52 (UTC)
 +   * Corrección de traducción por [[wiki: user: slackwarespanol | antares_alf]]  2024/07/20 03:03 (UTC)
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 {{tag>howtos software java jdk jre author_sycamorex}} {{tag>howtos software java jdk jre author_sycamorex}}
QR Code
QR Code es:howtos:software:java (generated for current page)