Enviado em 23/08/2013 - 00:10h
E ai galera do VOL.
mcnd2@debian: [/usr/lib/jvm]
>>> $ ls -l
total 16
lrwxrwxrwx 1 root root 20 Jul 3 14:34 java-1.7.0-openjdk-amd64 -> java-7-openjdk-amd64
drwxr-xr-x 5 root root 4096 Ago 4 22:36 java-6-openjdk-amd64
drwxr-xr-x 5 root root 4096 Ago 1 00:32 java-7-openjdk-amd64
drwxr-xr-x 3 root root 4096 Ago 1 00:32 java-7-openjdk-common
drwxr-xr-x 8 500 143 4096 Jun 6 04:07 jdk7u25
mcnd2@debian: [/usr/lib/jvm]
>>> $ cat /etc/profile
# /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"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH
if [ "$PS1" ]; then
if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
JAVA_HOME=/usr/lib/jvm/jdk7u25
PATH=$JAVA_HOME/bin:$PATH
export PATH JAVA_HOME
CLASSPATH=$JAVA_HOME/lib/tools.jar
CLASSPATH=.:$CLASSPATH
export PATH JAVA_HOME CLASSPATH
mcnd2@debian: [/usr/lib/jvm]
>>> $ java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
mcnd2@debian: [/usr/lib/jvm]
>>> $ javac -version
bash: javac: comando não encontrado
mcnd2@debian: [/usr/lib/jvm]
>>> $