Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

JNLP installer-desc question

Thread view: 
Roedy Green - 03 Feb 2006 15:41 GMT
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>

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Oliver Wong - 03 Feb 2006 16:40 GMT
>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/javawebstart/download-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
Roedy Green - 03 Feb 2006 23:20 GMT
>    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?
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.