LinuxSir.cn,穿越时空的Linuxsir!

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

[alternatives] comman not found !

[复制链接]
发表于 2005-10-30 00:54:33 | 显示全部楼层 |阅读模式
under FC4, login as root:
**********
[root@localhost alternatives]# alternatives
bash: alternatives: command not found
[root@localhost alternatives]#
****************

     what's the problem ?

     by the way, i install JDK1.5.0 and set the envirenment
     how to remove the original JDK1.4 ?

******************
[root@localhost alternatives]# echo $JAVA_HOME
/usr/java/jdk1.5.0_03
[root@localhost alternatives]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)

Copyright (C) 2005 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.
*********************
发表于 2005-10-30 01:59:06 | 显示全部楼层
PATH=/usr/java/jdk1.5.0_03/binPATH
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-30 12:49:04 | 显示全部楼层
I have set the JAVA_HOME, PATH, CLASSPATH already !
That doesn't work , problem still remain ...
回复 支持 反对

使用道具 举报

发表于 2005-10-30 16:58:44 | 显示全部楼层
Post by yucc_cau
I have set the JAVA_HOME, PATH, CLASSPATH already !
That doesn't work , problem still remain ...


那就说明你可能设错了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-31 16:11:47 | 显示全部楼层
prob;em solved:
use "su -" instead of "su"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-31 23:39:32 | 显示全部楼层
alternatives是选择吧

也就是让有多个可用的选项是用来给系统指定一个默认项 ,能这么理解吗 ?
alternatives操作后,除了java -version显结果的变化外
在java其他应用程序中会自动调用jdk1。5。0还是依然是原来的系统自带的呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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