mountain-lion – 为什么Java SE 6 Web Start(javaws)在山狮上找不到Apple for Java for OS X 2012-006的JRE?
作者:互联网
简单来说
JRE已安装但javaws无法找到JRE.
我可以在命令行上如何在Chrome或Safari中重新启用Apple Java 6的Web插件?
我想避免使用Java 7.(我们正在等待Java 8.)
详情
我对Mountain Lion进行了全新升级(10.8.2).我从Apple(Java for OS X 2012-006)安装了JDK V6.现在:
>我的所有Java应用程序运行正常
> Internet插件不再适用于Chrome或Safari.
javaws在命令行报告:
No JRE present
单击Web小程序时:
>操作系统指示我安装JRE
>该链接无处可去,因为已经安装了JRE.
历史
>升级为山狮
>通过java -version方法安装强制JRE. “成功”
>所有Java应用程序都像以前一样工作(ide / dbms / email / etc)
>尝试在Chrome(或Safari)中启动java applet
>小程序区域中的消息“Missing Plugin =>”.点击它
>错误“未安装JRE,单击确定以打开页面…”.
>单击[确定]但不打开任何页面.假设这是因为实际上已经安装了JRE.
>从命令行尝试(/usr/bin/javaws):
当我从命令行尝试/usr/bin/javaws时,我得到了这个输出,加上标准的install-a-jre弹出窗口.
[~] /usr/bin/javaws (or just [~] javaws)
No Java runtime present, requesting install.
Unable to locate a Java Runtime to invoke.
– 但是JRE存在 –
[~] /usr/bin/java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
– Java应用程序确实运行.
Java可执行文件
[~] ll -s /usr/bin/java*
/usr/bin/java@ -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
/usr/bin/javac@ -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac
/usr/bin/javadoc@ -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javadoc
/usr/bin/javah@ -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javah
/usr/bin/javap@ -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javap
/usr/bin/javaws@ -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws
我听说可以安装Java 7 JDK(包括JRE)来重新获得首选项并启用切换.如果这是唯一的行动方案我将会这样做,但我更希望JAVA_HOME能够在没有Java 7的情况下正常使用Java 6.
Apple的Java首选项实用程序不再适用 – Apple最新的Java for OS X更新删除了该实用程序.
解决方法:
在About Java for OS X 2012-006(文章HT5493,修改后的2012-10-16)Apple给出了一篇相关的文章:
> Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality(文章HT5559,修订版2012-10-22).
请运行所有四个命令.第四个应该重新启用Java SE 6 Web Start.
标签:java,command-line,mountain-lion 来源: https://codeday.me/bug/20190818/1684779.html