libgcj-java-placeholder.sh


0

我下载了jdk 1.6并放在/ usr / java中。当尝试给出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.

怎么解决这个?

java 

Answers:


0

找到了 ! / usr / bin中的符号链接指向错误的路径。 删除了这些链接并创建了指向我的java文件夹的新链接。

使用的命令:

mv java java_old
mv javac javac_old
ln -s /usr/java/jdk1.6.0_43/bin/java java
ln -s /usr/java/jdk1.6.0_43/bin/javac javac

java -version 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.