vendredi 24 juillet 2015

Can't create shortcut or desktop from JNLP

i got most part of webstart JNLP work except the desktop creation:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080">
    <information>
      <title>Demo</title>
      <vendor>Saintonics</vendor>
      <homepage href="http://www.bizfans.net"/>
      <description>Web Start Version</description>
      <description kind="short">Web Start Version</description>
      <offline-allowed/>
      <icon href="images/bizfans.png"/>
      <icon kind="splash" href="images/bizfans.jpg"/>
      <shortcut online="false">
        <desktop/>
        <menu submenu="BizFans App"/>
      </shortcut>
    </information>
    <information os="Windows">
      <icon href="images/bizApp.png" kind="shortcut"/>
    </information>
    <security>
      <all-permissions/>
    </security>
    <resources>
      <j2se version="1.6+"/>
      <jar href="LoneStar.jar" main="true" download="progress"/>
    </resources>
    <update check="always"/>
    <application-desc main-class="chatclient.app.LoneStar">
    </application-desc>
</jnlp>

The recent Java doc indicate "desktop" element should have same parent as "shortcut", but most online example place the "desktop" under "shortcut"... either way i couldn't create the destop icon on my app, anyone would be kind enough to shed some lights?

Kev




Aucun commentaire:

Enregistrer un commentaire