- PATH ????
+ Responder ao Tópico
-
PATH ????
Olá amiguinhos estou com um problema sério eu usava o conectiva linux 8 e agora instalei o hed-hat 8 muito bom por sinal, só que tive de reinstalar 4 veses devido a um problema depois que configuro o path para ele achar a pasta:
/usr/java/j2sdk1.4.0/bin
esse é meu arquivo /etc/profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|<IMG SRC="images/forum/icons/icon_smile.gif">$1($|<IMG SRC="images/forum/icons/icon_smile.gif">" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
unset pathmunge
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
Por conta disso instalei o sisstema 5 vezes pois toda vez que coloco o java no Path ele fica inacessivel .... e no conectiva 8 eu configurava esse path o classpath e tomcat sem problemas nenhum alguem pode me ajudar.....
by Patricia
[email protected]
Desenvolvedora java em linux
BJS