Thursday, February 3, 2011

Set Java path permant in linux

vi /root/.bash_profile


# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
export JAVA_HOME=/usr/java/jdk1.6.0_16
PATH=$PATH:/usr/java/jdk1.6.0_16


export PATH
unset USERNAME

Set Java path for all user

vi /etc/.bash_profile

0 comments:

Post a Comment