JNLP文件提示的Mac下载的JRE,但它已经安装(Java 1.6.0_37)的Mac OSX 1

2019-10-17 16:04发布

我甚至不知道真的在这里张贴的内容中,除了一个事实,即在计算机上的终端说:

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)

但由于某些原因,当我运行JNLP文件的提示弹出说要打开这个Web Start应用程序我需要下载Java运行时环境。 我已经做到了。 它最初安装了Java 7,并做了一些研究之后,我发现这JNLP文件不会安装了Java 7中打开。 等我回去和删除Java 7的,现在这种情况正在发生。

如果我打开Java Preferences窗口,我可以看到,Java SE 6中确实安装。 我只是不知道该怎么做。

编辑:

终端说

No Java runtime present, requesting install. Unable to locate a Java Runtime to invoke.

当我把

javaws /(path).jnlp

此外,我跑了janela,并得到了如下报道:

JaNeLA报告 - 版本17年5月11日

Report for file:/Users/administrator/Desktop/Final%20Cut%20Server.jnlp

Content type application/xml does not equal expected type of application/x-java-jnlp-file
cvc-complex-type.2.4.a: Invalid content was found starting with element 'icon'. One of '{title}' is expected.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'icon'. One of '{title}' is expected.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
XML encoding not known, but declared as utf-8
Codebase + href 'http://10.13.144.50/~fcsvr/webstart/macJnlp.php' is not equal to actual location of 'file:/Users/administrator/Desktop/Final%20Cut%20Server.jnlp'.
Desktop icons were subject to bug nnnn in earlier J2SE versions
Optimize this application for off-line use by adding the <offline-allowed /> flag.
The HREF of '/~fcsvr/webstart/FinalCutServer.jar' could be optimized to '~fcsvr/webstart/FinalCutServer.jar'.
Downloads can be optimized by specifying a resource size for '/~fcsvr/webstart/FinalCutServer.jar'.
The resource download at /~fcsvr/webstart/FinalCutServer.jar can be optimized by removing the (default) value of download='eager'.
The resource download at /~fcsvr/webstart/FinalCutServer.jar can be optimized by removing the (default) value of main='false'.
It might be possible to optimize the start-up of the app. by  specifying download='lazy' for the /~fcsvr/webstart/FinalCutServer.jar resource.
Lazy downloads might not work as expected for /~fcsvr/webstart/FinalCutServer.jar unless the download 'part' is specified. 
The HREF of '/~fcsvr/webstart/FinalCutServer_MacOSX.jar' could be optimized to '~fcsvr/webstart/FinalCutServer_MacOSX.jar'.
Downloads can be optimized by specifying a resource size for '/~fcsvr/webstart/FinalCutServer_MacOSX.jar'.
The resource download at /~fcsvr/webstart/FinalCutServer_MacOSX.jar can be optimized by removing the (default) value of download='eager'.
It might be possible to optimize the start-up of the app. by  specifying download='lazy' for the /~fcsvr/webstart/FinalCutServer_MacOSX.jar resource.
Lazy downloads might not work as expected for /~fcsvr/webstart/FinalCutServer_MacOSX.jar unless the download 'part' is specified. 
The HREF of '/~fcsvr/webstart/FinalCutServer_MacOSX.jar' could be optimized to '~fcsvr/webstart/FinalCutServer_MacOSX.jar'.
Downloads can be optimized by specifying a resource size for '/~fcsvr/webstart/FinalCutServer_MacOSX.jar'.
The resource download at /~fcsvr/webstart/FinalCutServer_MacOSX.jar can be optimized by removing the (default) value of download='eager'.
It might be possible to optimize the start-up of the app. by  specifying download='lazy' for the /~fcsvr/webstart/FinalCutServer_MacOSX.jar resource.
Lazy downloads might not work as expected for /~fcsvr/webstart/FinalCutServer_MacOSX.jar unless the download 'part' is specified. 
Resource type icns of resource ~fcsvr/webstart/FinalCutServer.icns is not one of the allowable types of gif, jpg, jpeg.
Downloads can be optimized by specifying a resource size for '~fcsvr/webstart/FinalCutServer.icns'.
Icon loading & use can be optimized by specifying the width and height for ~fcsvr/webstart/FinalCutServer.icns
Resource type icns of resource ~fcsvr/webstart/FinalCutServer.icns is not one of the allowable types of gif, jpg, jpeg.
Downloads can be optimized by specifying a resource size for '~fcsvr/webstart/FinalCutServer.icns'.
Icon loading & use can be optimized by specifying the width and height for ~fcsvr/webstart/FinalCutServer.icns
Resource type png of resource ~fcsvr/webstart/FinalCutServer.png is not one of the allowable types of gif, jpg, jpeg.
Downloads can be optimized by specifying a resource size for '~fcsvr/webstart/FinalCutServer.png'.
Icon loading & use can be optimized by specifying the width and height for ~fcsvr/webstart/FinalCutServer.png
The HREF of '/FinalCutServer' could be optimized to 'FinalCutServer'.
Note that a java/j2se version of 'n.n*' will limit the app. to that  specific Java runtime, and no later.  It is often better to specify  version as 'n.n+'.
Note that a java/j2se version of 'n.n*' will limit the app. to that  specific Java runtime, and no later.  It is often better to specify  version as 'n.n+'.

对不起,我知道了很多,但我甚至不知道什么是重要的,哪些不是。 希望这可以帮助。

Answer 1:

作为讨论在这里 ,苹果禁止该和早期版本的Java安全更新未决。 版本1.6.0_39是现在可以通过软件更新现存的,如描述在这里和这里 。



Answer 2:

我有同样的问题,在这里这个解决方案工作得很好:

http://support.apple.com/kb/HT5559



Answer 3:

如果你安装了Oracle的Java 7,您可以运行jnlp与文件:

'/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws' file.jnlp

如果你想,你也可以更换/usr/bin/javaws一个符号链接到文件/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws



文章来源: jnlp file is prompting mac to download JRE, but its already installed (Java 1.6.0_37) Mac OSX 10.7.5