0

I got most part of Web Start JNLP to 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 desktop icon on my app, anyone would be kind enough to shed some light?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Saintor
  • 1
  • 3
  • Be sure to check the JNLP using JaNeLA, available at my [share drive](https://drive.google.com/drive/#folders/0B5B9wDXIGw9lUnJaUjA2cmlVRE0). – Andrew Thompson Jul 25 '15 at 09:44
  • What is it, is it some kind Parser? And shame that we are blocked on few US major portals from this part of world, don't ask why ..... Andrew can you at least tell me is "desktop" element sitting in right place, becoz according the recent doc "desktop" shouldn't be under "shortcut" – Saintor Jul 25 '15 at 17:22
  • *"Andrew can you at least tell me.."* That's what I designed and wrote JaNeLA for. After encoding the XSD and including it in the app., I no longer even have to know the correct form, since I *have a tool that **tells** me.* .. *"What is it, is it some kind Parser?"* It parses a JNLP according to an XSD, then does other checks that are either too complex for XSD or completely outside its bounds (e.g. availability of resources). – Andrew Thompson Jul 25 '15 at 17:32
  • *"And shame that we are blocked on few US major portals from this part of world, don't ask why ....."* Yes it is a shame and no I won't ask. The latter because this is really your problem to fix, and if you cannot organize a computer with an IP capable of downloading from my Google share drive (which as far as I understand, is available to most places around the world), it is really no skin off my nose. – Andrew Thompson Jul 25 '15 at 17:34
  • Oh sure I can manage to get around it. I was just tring to understand the nature of your tool. Thnx mate! – Saintor Jul 26 '15 at 01:49
  • Hi Andrew, the program generated following error: – Saintor Jul 30 '15 at 14:26
  • *"..following error:"* Please don't post code snippets or error output in code comments where it is mostly illegible. Instead [edit the question](http://stackoverflow.com/posts/31606744/edit).. – Andrew Thompson Jul 30 '15 at 14:30
  • Oh, and note that the tool offers a text report. – Andrew Thompson Jul 30 '15 at 14:32

0 Answers0