- 论坛徽章:
- 0
|
- #
- # Copyright (c) 1989, 2012, Oracle and/or its affiliates. All rights reserved.
- #
- # The profile that all logins get before using their own .profile.
- trap "" 2 3
- export LOGNAME PATH
- if [ "$TERM" = "" ]
- then
- if /bin/i386
- then
- TERM=sun-color
- else
- TERM=sun
- fi
- export TERM
- fi
- # Login and -su shells get /etc/profile services.
- # -rsh is given its environment in its .profile.
- case "$0" in
- -sh | -ksh | -ksh93 | -jsh | -bash | -zsh)
- if [ ! -f .hushlogin ]
- then
- /usr/sbin/quota
- # Allow the user to break the Message-Of-The-Day only.
- trap "trap '' 2" 2
- /bin/cat -s /etc/motd
- trap "" 2
- /bin/mail -E
- case $? in
- 0)
- echo "You have new mail."
- ;;
- 2)
- echo "You have mail."
- ;;
- esac
- fi
- esac
- umask 022
- trap 2 3
- JAVA_HOME=/home/DEV/jdk1.6.0_37
- export JAVA_HOME
- PATH=$JAVA_HOME/bin:$PATH
- export PATH
- CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
- export CLASSPATH
复制代码 我在solaris 11下配置Java环境变量,直接改了/etc/profile文件。。但是一点用都没有。。。我记得在solaris 10下面直接改这个文件重新login就可以了。我已经试验过 重新lonin,source,重启机器。一点用都没有。上面是我的设置
请问各位达人,该怎么办呢??? |
|