-
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
Etiketler:
.bash_profile,
.bashrc,
java,
java_home,
linux
7 Aralık 2012 Cuma
4 Aralık 2012 Salı
Linux - "xargs: unmatched single quote" hatası
find . -name "*.xml" -type f -print0 |xargs -0 grep "10.12.20.70" > yigit/sms.txt
http://www.ducea.com/2007/11/22/xargs-unmatched-single-quote/
http://www.ducea.com/2007/11/22/xargs-unmatched-single-quote/
20 Kasım 2012 Salı
2 Kasım 2012 Cuma
Unix - Komut tarihi
more ~/.bash_history
Etiketler:
.bash_history,
history,
unix,
unix sistem dosyaları
Kaydol:
Kayıtlar (Atom)