setting java in .bashrc – linux

Written By smart| 24 June 2009| No Comment

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PATH=/opt/java/jdk1.x.x.x/bin:$PATH

To activate the changes you can just use the next command:

source .bashrc

after the above stepĀ  logout and login.

Related Posts with Thumbnails

Share With Others

Leave your response!




Comment moderation is enabled. Your comment may take some time to appear.