-
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.
Unix, Linux, JBoss, Websphere, Ant, Python, Oracle DB, Arduino, Raspberry Pi.
12 Aralık 2012 Çarşamba
Linux - JAVA_HOME değiştirme
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder