• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Launch File Error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Below is the jnlp file and the error I get on launching it. I am not sure what the problem is. All files (.jnlp, .jar, etc) are in the same folder
and the jar file works perfectly fine. Using Apache, Tomcat and XP Pro.

Please help. Thanks.

--- JNLP ---
<jnlp spec="1.0+"
codebase="http://localhost/test/" href="BrowserLauncher.jnlp">
<information>
<title>BrowserLauncher</title>
<description>Lauches your default browser</description>
</information>
<resources>
<j2se version="1.2+" />
<jar href="BrowserLauncher.jar" />
</resources>
</jnlp>
--- END ---


--- ERROR ---
An error occurred while launching/running the application.
Category: Launch File Error
The following required field is missing from the launch file: <jnlp>

MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.main(Unknown Source)
--- END ---
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JNLP file is actually called "BrowserLauncher.jnlp" (case sensitive!), and you're running your webserver right?
 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get the same error.
Can anybody answer please ?
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not because I want to sound smart or anything...
But where do you specify your startup class?

<application-desc main-class="MyStartClass"/>

Maybe you want to do something about permissions

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

And initially add an encoding descriptor..

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

That should help you for a start...

PS: off-topic, anybody doing muffins :-)

regards

StigV
 
Engin Okucu
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for OntoRama Application -->
<jnlp spec="1.0+" codebase="file:///c:/" href="MyApp.jnlp">
<information>
<title>OntoRama Demo Application</title>
<description>MyApp Development</description>
<description kind="tooltip">My App!</description>
<icon href="MyApp.jpg"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="MyApp.jar"/>
</resources>
<application-desc main-class="be.brussel.MyApp"/>
</jnlp>


All my files are in C:,i don't see the error.
I m' getting the same error above.
Thanks for helping.
 
reply
    Bookmark Topic Watch Topic
  • New Topic