PATH can be ORACLE_HOME, JAVA_HOME, CATALINA_HOME ,etc but steps to set will be same.
There are three types file you will encounter when working on Linux,Solaris & Mac-OS.
if you find this information useful, please comment.
There are three types file you will encounter when working on Linux,Solaris & Mac-OS.
- .bash_profile --linux
- .profile --Solaris
- .bashrc
For setting the path variable in Linux/Solaris follow the steps as below
- Go to the home directory or go by typing cd , then press enter .
- Here I am using ORACLE_HOME just for the demonstration , you can set any path like this.
- Open the profile, for example : vi .bash_profile
- Write
- ORACLE_HOME=/usr/lib/oracle/11.2/client64
- export ORACLE_HOME
- Save it .
- Execute it
- . ~/.bash_profile
Check the Oracle Home by echo $ORACLE_HOME
For more demonstration on how to install Java on Linux . Please see my post on how to install java on Linux.
if you find this information useful, please comment.
great java tips At SynergisticIT we offer the best java bootcamp
ReplyDeleteI am really enjoyed with your blog. informative and helpful.
ReplyDeleteWeb Design Company in coimbatore
Web development in coimbatore