[Techtalk] Help, I'm stumbling on the PATH
Tricia Bowen
tbowen at CapitalThinking.com
Mon Feb 24 11:53:37 EST 2003
Beth,
Instead of adding JAVA_HOME to /etc/profile you can add it to your
.bashrc or .profile files in your home directory. I've got my .profile
pointing to my .bashrc as a symlink, and my .bashrc looks something like
this:
#!/bin/bash
umask 002
export PS1="\h:\w\$ "
export DYNAMO_HOME=$HOME/Dynamo
export TOMCAT_HOME=$HOME/tomcat
export ANT_HOME=$HOME/ant
export
PATH="/usr/local/bin:/usr/bin:/bin:/sbin:/usr/X11R6/bin:/usr/bin/X11:/usr/games:$HO
ME:$ANT_HOME/bin:$ORACLE_HOME/bin:/usr/local/netscape:/usr/local/eclipse:/usr/local/mozilla:$HOME/s1studio/ce/bin:."
export
MANPATH=/usr/X11R6/man:/usr/local/man:/usr/share/man:/usr/man:/usr/kerberos/man:/usr/local/jdk1.3.0_02/man
export
LD_LIBRARY_PATH="/usr/local/lib:/lib:$ORACLE_HOME/lib:/usr/local/eclipse"
export PRINTER=iprinter02
export EDITOR=emacs
#
# Java
#
export JAVA_HOME=/usr/local/jdk
export JAVA_PATH=/usr/local/jdk
export PATH=$PATH:$JAVA_HOME/bin
export
CLASSPATH=$JAVA_HOME/lib;$BLUEWIRE_HOME/base/jars/build.jar:$TOMCAT_HOME/common/lib/xerces.jar:$BLUEWIRE_HOME/base/canetoad.jar
# jsp
alias jsp="cd $HOME/jsp"
alias jm="cd $HOME/jsp;source minibash.tomcat"
# others
alias cl="cd $HOME/codelibrary/"
alias 1="more $HOME/codelibrary/oneliners"
# dynamo
alias kdyn="cd ~/Dynamo;. bin/killDynamo"
alias dyn="cd ~/Dynamo; bin/stopDynamo -kill; bin/startDynamo"
# fun
alias quake="nq-x11 +set vid_width 800 +set vid_height 600"
alias heretic="xheretic -nosound -nomusic -mode 800 600"
function fu {
echo "ps -aef | grep "$1" | awk '{print $"2"}' | xargs kill";
}
Hope this helps.
--Tricia
Beth Johnson wrote:
>Can I just add the java stuff and a PATH statement, say after the USER
>but before the export, like this:
>PATH=$PATH:$JAVA_HOME/bin
>and have that work out all right? Is that what I'm meant to do?
>
>enquiring minds want to know,
>Beth
>
>
More information about the Techtalk
mailing list