Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JNLP installer-desc question

Reply
Thread Tools

JNLP installer-desc question

 
 
Roedy Green
Guest
Posts: n/a
 
      02-03-2006
I have a JNLP file that I quote below. It is supposed to control both
an installer and the application itself. However when I validate this
through the Vampqh XSD it suggests I have to choose one or the other I
can't have both. Is the XSD incorrect or am I?


<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.0+" codebase="http://www.mindprod.com/webstarts"
href="esper.jnlp">
<information>
<title>Esperanta Tradukilo Vortope 2.0</title>

<vendor>Canadian Mind Products</vendor>
<homepage href="http://www.mindprod.com/" />

<description>Word for word Esperanto to/from English
translator.</description>
<description kind="short">Looks up words on local and Internet
Esperanto dictionaries.</description>
<description kind="tooltip">Tradukilo</description>
<icon href="http://www.mindprod.com/webstarts/greenstar32x32.gif"
width="32" height="32" />

</information>

<security>
<all-permissions />
</security>

<resources>
<j2se version="1.6.0"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_06"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_01"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_10"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_09"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_08"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_07"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_06"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_01"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.3+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.2+"
href="http://java.sun.com/products/autodl/j2se" />
<!-- application code -->
<jar href="esper.jar" />

<!-- data dictionaries in compressed form -->
<jar href="dicts.jar" />
</resources>



<!-- application class with main method -->
<application-desc main-class="com.mindprod.esper.Esper" />

<!-- code run once on install to unpack dicts.jar. Lives in
esper.jar -->
<installer-desc main-class="com.mindprod.esper.Installer" />
</jnlp>


--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
 
 
 
Oliver Wong
Guest
Posts: n/a
 
      02-03-2006
"Roedy Green" < > wrote in
message news:...
>I have a JNLP file that I quote below. It is supposed to control both
> an installer and the application itself. However when I validate this
> through the Vampqh XSD it suggests I have to choose one or the other I
> can't have both. Is the XSD incorrect or am I?


I tried to verify the Vamphq XSD, but it ended up becoming a rather
large task which I don't personally have the time to do. You can get the
official (in the sense that it comes from Sun) DTD is in a PDF file located
at http://java.sun.com/products/javaweb...load-spec.html

You could then compare it with Vamphq's DTD file to see if they match.
Vamphq's DTD file is at http://www.vamphq.com/download/jnlp-dtd-schema.txt

Then, ensuring that Vamphq's DTD file is correct, you could then use a
DTD to XSD converter, and see if the results match Vamphq's XSD file at
http://www.vamphq.com/download/jnlp-xml-schema.txt

Alternatively, after verifying that Vamphq's DTD file is correct, you
could just validate your JNLP file directly against the DTD.

- Oliver


 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      02-03-2006
On Fri, 03 Feb 2006 16:40:47 GMT, "Oliver Wong" <>
wrote, quoted or indirectly quoted someone who said :

>
> Then, ensuring that Vamphq's DTD file is correct, you could then use a
>DTD to XSD converter, and see if the results match Vamphq's XSD file at
>http://www.vamphq.com/download/jnlp-xml-schema.txt


What do you use for converting a DTD to a XSD?
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JNLP Spec document Roedy Green Java 1 10-23-2003 10:06 PM
JNLP file download error Ferman Java 9 08-14-2003 12:34 PM
jnlp, jar file and list the file names in a directory Ferman Java 0 08-13-2003 07:57 AM
Webstart JNLP from CD Kevin Munro Java 6 08-11-2003 01:49 AM
Asp.net and Contenttype = application/x-java-jnlp-file MJ ASP .Net 3 06-25-2003 04:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57