0 Replies Latest reply on Mar 24, 2013 10:55 PM by bjbcats

    Cannot create shortcut on Mac

    bjbcats
      <?xml version="1.0" encoding="utf-8"?>
      <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="Test.jnlp">
      <information>
      <title>PriceBook</title>
      <vendor>XXXXXXX</vendor>
      <description>XXXXXXXX</description>
           <icon href="XXXXXXX" kind="shortcut" />
      <offline-allowed/>
      <shortcut online="false" install="true">
      <desktop/>
      <menu submenu="PriceBook"/>
      </shortcut>
      </information>
      <resources>
      <jfx:javafx-runtime version="2.2+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
      </resources>
      <resources>
      <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
      <jar href="PriceBook.jar" size="107185" download="eager" />
      <jar href="lib/commons-codec-1.1.jar" size="21500" download="eager" />
      <jar href="lib/commons-lang-2.1.jar" size="220682" download="eager" />
      <jar href="lib/hsqldb.jar" size="1411234" download="eager" />
      <jar href="lib/jasypt-1.6.jar" size="144374" download="eager" />
      </resources>
      <security>
      <all-permissions/>
      </security>
      <applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="NSTPriceBook" >
      <param name="requiredFXVersion" value="2.2+"/>
      </applet-desc>
      <jfx:javafx-desc width="800" height="600" main-class="XXXXXXXXXX" name="PriceBook" />
      <update check="background"/>
      </jnlp>

      This app works for some systems as below:

      Windows 7 - works OK and creates shortcut
      Linux (OpenSuse 11.4 and 12.3) - works OK, shortcut usually created (seems a bit flakey)
      Mac OS: cannot create shortcut

      Mac OS version: 10.8.3
      java Version 7 update 17 (build 1.7.0_17-b02)

      Java Console -> View Temporary Internet Files -> Install Shortcuts for the Selected Applications -> "Unable to Create Shortcut for PriceBook"

      The jars have been signed with a self-signed cert, which of course I accepted on install, and it is possible to re-launch the app from Java Console.

      Is there a solution for this ?