“无法在OSX上启动Java7时创建快捷方式”

时间:2012-10-27 10:13:22

标签: java jnlp java-web-start

每当我在OS X 10.8上使用Java7启动JNLP WebStart应用程序时,我会收到以下消息对话框:

  

无法为XXXX创建快捷方式

控制台输出以下异常:

java.io.FileNotFoundException: /Users/XXXX/Library/Application Support/Oracle/Java/Deployment/cache/6.0/37/6bb90625-129dd80a.icns (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:97)
at com.sun.javaws.MacOSXShortcutUtil.copy(Unknown Source)
at com.sun.javaws.MacOSXShortcutUtil.createBundle(Unknown Source)
at com.sun.javaws.MacOSXLocalInstallHandler.createBundle(Unknown Source)
at com.sun.javaws.MacOSXLocalInstallHandler.createShortcuts(Unknown Source)
at com.sun.javaws.LocalInstallHandler.installShortcuts(Unknown Source)
at com.sun.javaws.LocalInstallHandler.performIntegration(Unknown Source)
at com.sun.javaws.LocalInstallHandler.install(Unknown Source)
at com.sun.javaws.Launcher.notifyLocalInstallHandler(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)

清理缓存,删除部署缓存无济于事。

1 个答案:

答案 0 :(得分:2)

OSX上的快捷方式错误存在于Java 7u9中。 它已在7u10中修复。您可能需要更新您的JRE。

<强> Discussion