LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1014|回复: 2

安装JDK遇到问题

[复制链接]
发表于 2004-10-23 18:04:14 | 显示全部楼层 |阅读模式
rpm安装的,J2SE的JDK,版本1.4.x
安装完以后这样了

[root@hwb-server root]# java -version
libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java and /usr/bin/javac
master links required by jpackage.org conventions.  libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
[root@hwb-server root]# javac
libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java and /usr/bin/javac
master links required by jpackage.org conventions.  libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.


这是怎么搞得?
 楼主| 发表于 2004-10-23 18:06:20 | 显示全部楼层
操作系统是redhat as3 update3
安装完以后我在/etc/profile里设置了PATH,CLASSPATH等变量
发表于 2004-10-23 22:10:33 | 显示全部楼层
看看这个,留意其他人的回帖:
http://www.newsarch.com/archive/ ... neral/msg08611.html

试试把你安装的jdk的路径放到path的第一个位置,也就是说,确保运行的javac or java不是/usr/bin下的,而是属于你自己安装的jdk。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表