wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes problem running jnlp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "problem running jnlp" Watch "problem running jnlp" New topic
Author

problem running jnlp

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
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 ]

All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Ben Harrison
Greenhorn

Joined: Jan 26, 2006
Posts: 27
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem running jnlp
 
Similar Threads
Unable to launch the web start application
FileNotFoundException - Access Denied
EJB client and Java webstart with JNLP
JNLP and Jar versions
Doesn't work properly of my JNLP webstart