本文介绍了有没有办法在 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它要么什么都不回答(那么它根本没有设置)或者它可能指向一个符号链接(就像在我的 PC 上一样;)它启动了一个错误的 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/Support/Deploy.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 链接/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)

附言在其他论坛上,我发现您可能需要为您的 JAVA 文件夹提供额外的读取(可能是写入)权限,以防没有 sudo 无法启动 javaws.

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.

P.S.2:您可能想使用 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-13 00:20