2 Replies Latest reply: Sep 13, 2012 4:47 AM by 959663 RSS

    Web start for Java 7 (update 8) on MacOS Lion can't create shortcut

    959663
      We have a Webstart working fine on Java 6, lately one of our user updated to Java 7, and the shortcut of this Web Start can not be successfully installed. with this exception:

      ------------------------------------------------------
           Match: Running JREInfo Version match: 1.7.0.08.ea == 1.7.0.08.ea
           Match: Running JVM args match: have:<-Xmx256m -Xms128m> satisfy want:<-Xmx256m -Xms128m>
      java.io.FileNotFoundException: /Users/ryantan/Library/Application Support/Oracle/Java/Deployment/cache/6.0/4/61fa8384-5f843c43.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)

      =========================

      in the JNLP file we have these lines declare a shortcut on desktop, and it works exactly for Java 6 on same machine:

      --------
      <shortcut online="true">
      <desktop/>
      <menu submenu="XXXXX">
      </shortcut>
      --------

      so I was wondering if any one have encountered same issue like this? please give me some hint about how to work around with this, Thanks in advance.

      Ryan Tan