12 Aralık 2012 Çarşamba

Linux - JAVA_HOME değiştirme

  • Open the ~/.bashrc in a text editor. From the command line, the command would be:
    gedit ~/.bashrc.

  • Add the following two lines to the file:
    export JAVA_HOME=/usr/java/jdk<version>/bin/java
    export PATH=$PATH:/usr/java/jdk<version>/bin
    Replace <version> with the version number of the JDK you are using. If you have JDK installed in an alternate location, change both variables to reflect your information.

  • Save your file.

  • Restart your terminal session.

  • Type "echo $JAVA_HOME" to ensure the variable has been set correctly.

http://www.ehow.com/how_5120825_change-java-home.html

Hiç yorum yok: