[Anotaciones] Set $JAVA_HOME linux

To set JAVA_HOME environment variable, do the following:
  1. Launch Terminal by pressing Ctrl+Alt+T on your keyboard.
  2. Enter the following command:
    gksudo gedit /etc/environment
  3. Depending on where you installed your Java, you will need to provide the full path. For this example, I installed Oracle JDK 7 in the /usr/lib/jvm/java-X-oracle directory.
    Scroll to the end of the file and enter the following:
    JAVA_HOME=/usr/lib/jvm/java-X-oracle
    export JAVA_HOME
  4. Save your file and exit gedit.
  5. Lastly, reload the system PATH with the following command:
    . /etc/environment
__________________________________________________________________

Ayuda esto también:

$ echo $JAVA_HOME

$ java -showversion

Comentarios

Entradas populares de este blog

Integrar API de Google Maps, archivos kml, kmz y otras fumarolas :D

Musimetría - música generada de forma automática por computadora.

Solución [fix] a hamachi Logging in .. failed, busy