1 Reply Latest reply: Aug 12, 2013 9:54 AM by heismann RSS

    Java WebStart deployment does not create shortcut on desktop

    user6427421
      Using Netbeans 7.3 and latest Java 1.7.0_17. In Properties -> Build -> Deployment I have these settings ticked:

      check for application updates in background
      allow to run with no internet connection
      install permanently
      add desktop shortcut
      add start menu shortcut

      and additionally the jars are signed:

      request unrestricted access (enable signing)

      This creates a jnlp file:


      <?xml version="1.0" encoding="utf-8"?>
      <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="PriceBook.jnlp">
      <information>
      <title>PriceBook</title>
      <vendor>blah</vendor>
      <description>blah</description>
           <icon href="my.ico" />
      <offline-allowed/>
      </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>
      <shortcut><desktop/></shortcut>
      <applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="PriceBook" >
      <param name="requiredFXVersion" value="2.2+"/>
      </applet-desc>
      <jfx:javafx-desc width="800" height="600" main-class="com.mycompany.PriceBook" name="PriceBook" />
      <update check="background"/>
      </jnlp>

      There's another thread In need of opinion - desktop shortcut, security warning. which I've tried the suggestions, but I cannot get a permanent install with a shortcut on either Windows or Linux. The app is launched OK, it just does not persist. Using jcontrol on Linux, I can choose an option to create a desktop shotcut, and it does create a shortcut, but as soon as you launch the app, the shortcut is deleted.

      Can anyone help ?