- 论坛徽章:
- 0
|
各位达人:
今天新装了DEBIAN。装完JDk后按以前REDHAT的方法修改/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:/usr/bin/X11:/usr/local/jdk1.5.0_10/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/jdk1.5.0_10/bin"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
CLASSPATH="/usr/local/jdk1.5.0_10/lib/dt.jar:/usr/local/jdk1.5.0_10/bin/tools.jar"
export PATH
export CLASSPATH
export LANG=zh_CN.GB2312
export LG_ALL=zh_CN.GB2312
export XMODIFIERS="@im=Chinput"
umas k022
重启X之后echo $PATH发现依然没有JDK相关的PATH信息
argum@argum:/etc/X11/Xsession.d$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
argum@argum:/etc/X11/Xsession.d$
请指教应如何设置?
谢谢! |
|