|
3#
楼主 |
发表于 2012-4-16 15:02:16
|
只看该作者
已修改了配置文件如下,但执行java -version 还是旧的版本
[root@localhost ~]# env
SSH_AGENT_PID=4186
HOSTNAME=localhost.localdomain
DESKTOP_STARTUP_ID=
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
WINDOWID=28311633
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
GNOME_KEYRING_SOCKET=/tmp/keyring-6rzWSu/socket
SSH_AUTH_SOCK=/tmp/ssh-vuQzuV4151/agent.4151
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/4151
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/java/jdk1.7.0/lib:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
DESKTOP_SESSION=default
QT_IM_MODULE=scim
GDM_XSERVER_LOCATION=local
INPUTRC=/etc/inputrc
PWD=/root
JAVA_HOME=/usr/java/jdk1.7.0
XMODIFIERS=@im=SCIM
LANG=zh_CN.UTF-8
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=2
HOME=/root
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=root
CVS_RSH=ssh
CLASSPATH=.:/usr/java/jdk1.7.0/lib/da.jar:/usr/java/jdk1.7.0/jre/lib/tolls.jar
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Ag05wioJGs,guid=42c88b97cb85a71bc4d6b4004f8bc32b
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
GTK_IM_MODULE=scim-bridge
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/tmp/.gdmQ9PGCW
_=/bin/env
[root@localhost ~]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|