Thursday, April 19, 2012

Setting Environment Variable in Linux

To set the environment variable for java, and other do the following

  • open /etc/bash.bashrc as root privileged 
  • put the executable application to /usr/local/bin/<appName> and copy here /install here. Also it's possible to refer the directory where ever.
  • Add the location to the opened file as follow; Examle for java: PATH=$PATH:/usr/local/java/<jdk...> and export PATH then save and exit.
Enjoy With ....

No comments:

Post a Comment