Redhat Linux JDK配置问题集

1、运行java -version ,出现下面的提示
libgcj-java-placeholder.sh
This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions. libgcj's
……

解决办法:
# alternatives --remove java /usr/share/java/libgcj-java-placeholder.sh
# alternatives --remove javac /usr/share/java/libgcj-javac-placeholder.sh
# alternatives --remove jar /usr/bin/fastjar
# alternatives --remove jar.1.gz /usr/share/man/man1/fastjar.1.gz
# cd /usr/bin
# ln -s /path/jre1.5.0/bin/java java

你可能感兴趣的:(java,jdk,linux,redhat)