Etc - Setting Your Java Path


2003-10-24

To set your Java path add /share/j2sdk1.4.1/bin to your .bash_profile.

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

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/share/j2sdk1.4.1/bin:.
BASH_ENV=$HOME/.bashrc
USERNAME=""

export USERNAME BASH_ENV PATH

Save the file and reload your .bash_profile.

$ . .bash_profile