本文介绍了有没有办法在OSX Lion上用Java 6重新启用javaws?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着Lion上Apple的Java 6的最新更新,它不仅禁用了Web浏览器支持,还禁用了Java Web Start。我使用javaws和一个需要Java 6和32位的应用程序。 Java 6仍然存在于我的系统中,但javaws不起作用:

With the latest update to Apple's Java 6 on Lion, not only did it disable web browser support, it also disabled Java Web Start. I use javaws with an app that requires Java 6 and 32-bit. Java 6 is still present on my system, but javaws doesn't work:

James-Babkas-iMac:~ jimbabka$ 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)

James-Babkas-iMac:~ jimbabka$ javaws http://foo.bar.org/bgameui/bgameui.jnlp
No Java runtime present, requesting install.
Unable to locate a Java Runtime to invoke.

当我运行javaws命令时,我收到一条弹出消息,指示我访问Oracle网页我可以下载64位Java 7,这对我没用。有没有办法让javaws再次使用32位Java 6?

When I run the javaws command, I get a popup message that directs me to an Oracle web page where I can download 64-bit Java 7, which is of no use to me. Is there any way to get javaws working with 32-bit Java 6 again?

推荐答案

我修复了同样的问题。在昨天更新到最新的1.6.0_37后,我的javaws不再启动了(与你的相同的消息)。

i fixed the same problem. After updating yesterday to the latest 1.6.0_37 my javaws did not start anymore (same message as yours).

所以让我们首先检查你的javaws取自哪里:


哪个javaws

它会回答你没有任何东西(然后它根本没有设置)或它可能指向一个符号链接(就像在我的电脑上;),它会启动一个错误的javaws。例如来自文件夹 /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands

So let's check first where your javaws is taken from:
which javawsIt will answer you either with nothing (then it is not set at all) or it might point to a symlink (just like on my PC;) which starts a wrong javaws. e.g. from the folder /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands

尝试启动你找到javaws的所有文件夹中的javaws:
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/
/ System / Library / Java /支持/部署.bundle / Contents / MacOS

Try to start your javaws from all folder(s) you find javaws:/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/ /System/Library/Java/Support/Deploy.bundle/Contents/MacOS

(使用sudo进行测试,例如 sudo / System / Library / Frameworks / JavaVM.framework / Versions / Current / Commands / javaws

(use sudo for testing, e.g. sudo /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws)

对我而言,它来自第二个文件夹.. 。

For me it worked from the 2nd folder...

然后你可以将javaws(例如/ usr / bin / javaws)可执行文件指向该javaws( sudo link / System / Library / Java /JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javaws / usr / bin / javaws

Then you may point a javaws (e.g. /usr/bin/javaws) executable to that javaws (sudo link /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javaws /usr/bin/javaws)

PS在其他论坛上,我发现你可能需要为你的JAVA文件夹提供额外的读(可能是写)权限,以防javaws在没有sudo的情况下启动。

P.S. At other forums i found that you may have to give additional read (maybe write) rights to your JAVA folders in case the javaws does not start without sudo.

PS2:您可能希望使用EasyFind之类的工具来查找隐藏内容(Finder没有看到)

P.S.2: you might want to use a tool like EasyFind to find "hidden" content (which you do not see with Finder)

这篇关于有没有办法在OSX Lion上用Java 6重新启用javaws?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 04:16