gpt4 book ai didi

java - 选择 Sun Java 6 时出现的错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:34:37 25 4
gpt4 key购买 nike

在 Ubuntu 10.10 (Maverick) 上,我同时拥有 java-6-openjkdjava-6-sun,如 update-java-alternatives 所示-l 命令。

但是,当我通过命令将替代项设置为 Sun 时

sudo update-java-alternatives -s java-6-sun

我看到以下内容:

update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
update-alternatives: error: alternative /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so for mozilla-javaplugin.so not registered, not setting.
update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.

这会导致 xulrunner 无法正常工作还是仅仅导致它继续使用 Open JVM?同样,我提出了关于 mozilla-javaplugin.so 的类似问题。

更新 切换回 OpenJDK 也会导致错误:

$ sudo update-java-alternatives -s java-6-openjdk

update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.

如果可以对此做些什么呢?

更新 我被这个影响了commentary on why instructions were written to install Sun Java使用 Sun 会降低人类注意力/时间方面的风险。我正在使用 API 连接到一个 Web Start 应用程序,其中支持 Material 都引用了 Sun。

最佳答案

Sun-6-java is being phased out by Oracle and is no longer supported. This is why there are no plugins available for your browser anymore.

OpenJDK is the only stack you should be using as sun-java-6 is outdated and deprecated.

http://en.wikipedia.org/wiki/OpenJDK

If you would like to use Proprietary Closed Source features in Java you will need to >install the version from java.com (which is also OpenJDK so don't really see any benefit >over the Ubuntu Repository version).

OpenJDK is backwards compatible with the old Sun-6-java. What can you not run with OpenJDK?

引自this question .

关于java - 选择 Sun Java 6 时出现的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8846866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com