jnlp文件提示Mac下载JRE,但已安装(Java 1.6.0_37)Mac OSX 10.7.5 [英] jnlp file is prompting mac to download JRE, but its already installed (Java 1.6.0_37) Mac OSX 10.7.5
问题描述
除了计算机上的终端上说:
I don't even really know what to post in here except for the fact that the terminal on the computer says:
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 Runtime Environment.我已经做了.它最初安装了Java 7,经过研究后,我发现在安装Java 7的情况下无法打开该jnlp文件.所以我回去删除了Java 7,现在正在发生这种情况.
but for some reason when i run the JNLP file a prompt pops up saying that to open this web start application I need to download the Java Runtime Environment. Which I already did. It originally installed Java 7, and after doing some research I discovered that this jnlp file won't open with Java 7 installed. So I went back and removed Java 7, and now this is happening.
如果打开"Java首选项"窗口,则可以看到确实安装了Java SE 6.我只是不知道该怎么办.
If I open the Java Preferences window, I can see that Java SE 6 is indeed installed. I just have no idea what to do.
终端说
No Java runtime present, requesting install. Unable to locate a Java Runtime to invoke.
当我放入
javaws /(path).jnlp
我还经营了janela,并得到了这份报告:
Also I ran janela, and got this report:
JaNeLA报告-版本11.05.17
JaNeLA Report - version 11.05.17
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+'.
对不起,我了解很多,但是我什至不知道什么是重要的,什么不是重要的.希望这会有所帮助.
I'm sorry i know its a lot, but I don't even know what is important and what isn't. Hope this helps.
推荐答案
如果安装了Oracle Java 7,则可以使用以下命令运行jnlp
文件:
If you installed Oracle Java 7, you can run jnlp
files with:
'/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws' file.jnlp
如果愿意,还可以用/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws
的符号链接替换/usr/bin/javaws
文件.
If you would want, you can also replace /usr/bin/javaws
file with a symlink to /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws
.
这篇关于jnlp文件提示Mac下载JRE,但已安装(Java 1.6.0_37)Mac OSX 10.7.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!