Requirements:
2) Add the following line (based on the path of your jdk)
3) Logout of the console/session. Re-log in. You need to do this to reset bash. Sometimes typing "bash" will suffice.
4) Type this command to test
- Root account
vi /root/.bash_profile
2) Add the following line (based on the path of your jdk)
export JAVA_HOME=/usr/local/jdk1.6.0_21(Just add it where the other "export" lines are)
3) Logout of the console/session. Re-log in. You need to do this to reset bash. Sometimes typing "bash" will suffice.
4) Type this command to test
echo $JAVA_HOME
- fattwam likes this