Este e o meu profile para executar Java não esta funcionando dentro do
terminal quando estou no KDE tem as referencias abaixo que adicionei com #
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='[EMAIL PROTECTED]:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
###################Comeca Aqui
for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done
##############Termina Aqui
export PATH
umask 022
+++++++++++++++++++++++++++
Este e o diretorio que o debian nao tem e criei
/etc/profile.d
jdk.sh
#!/bin/sh
JAVA_HOME="/usr/lib/jdk1.5.0_06"
JRE_HOME="/usr/lib/jdk1.5.0_06/jre"
CLASSPATH="$JAVA_HOME:$JAVA_HOME/lib:$JRE_HOME/lib:."
MANPATH="$MANPATH:$JAVA_HOME/man"
JAVA_DOC="$JAVA_HOME/docs"
PATH="$PATH:$JAVA_HOME/bin:$JRE_HOME/bin"
export JAVA_HOME JRE_HOME CLASSPATH MANPATH JAVA_DOC PATH
#################################
jre.sh
#!/bin/sh
JAVA_HOME="/usr/lib/dk1.5.0_06"
CLASSPATH="$JAVA_HOME:$JAVA_HOME/lib"
MANPATH="$MANPATH:$JAVA_HOME/man"
PATH="$PATH:$JAVA_HOME/bin"
export JAVA_HOME CLASSPATH MANPATH PATH
Obrigado
Carlos Alberto
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]