Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem running jnlp

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I try to run jnlp file I get this error:



Here is my jnlp file:

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="http://192.9.200.163/akravets/clientSQL"
href="start.jnlp">
<information>
<title>Tankwars v0.01</title>
<vendor>Aleksndr Kravets - Kliger-Weiss Infosystems</vendor>
<homepage href="http://www.kligerweiss.com"/>
<description>SQL Runner</description>
<description kind="short">runner</description>
<offline -allowed/>
</information>
<security>
<all -permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
<jar href="library.jar"/>
<jar href="myRunner.jar"/>

</resources>
<resources os="Windows">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
<nativelib href="lib/lwjgl-win32-native.jar"/>
</resources>
<application -desc/>
</jnlp>

And when I validate file I get:

[Fatal Error] start.jnlp:1:2: The markup in the document preceding the root element must be well-formed.


thanks,
Alex

[ January 13, 2006: Message edited by: Alex Kravets ]
[ January 13, 2006: Message edited by: Alex Kravets ]
 
Ben Harrison
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I opened it in IE as an xml document to see that it was formed correctly, the spaces in application and all-permissions was wrong...maybe that was your only problem?

<code>
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://192.9.200.163/akravets/clientSQL" href="start.jnlp">
<information>
<title>Tankwars v0.01</title>
<vendor>Aleksndr Kravets - Kliger-Weiss Infosystems</vendor>
<homepage href="http://www.kligerweiss.com"/>
<description>SQL Runner</description>
<description kind="short">runner</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
<jar href="library.jar"/>
<jar href="myRunner.jar"/>
</resources>
<resources os="Windows">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
<nativelib href="lib/lwjgl-win32-native.jar"/>
</resources>
<application-desc/>
</jnlp>

</code>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic