• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JAR file not running in JNLP

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm having problems with my first jnlp app. I use the following code:




to run deploy.jar file on my local computer.

deploy.jar file runs while double clicking on its icon, but does not run in jnlp. I get no pop-up windows with errors.

After setting the trace option to showing all the trace I got to these:





Could someone give me some advice on how to solve this problem? Or how to run local files using jnlp?
I searched the net but I couldn't find anything that would solve the problem.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
adding the codebase parameter to the jnlp tag should help.
example from a webserver app:
<jnlp spec="1.0+" codebase="/fdeweb" href="">

I never launch direct on my PC, so guessing here,
applied to your PC env, try a declaration of codebase="(drive letter):\path\to\jar\folder"

your main-class assignment of deploy.Deploy indicates you're executing the Deploy class
in the deploy package.


 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just started working with some samples today and from your post it appears (although not certain) that you are attempting to access the file directory and not through a web server.

If this is indeed the case, I believe you need to add something like the following.

<jnlp spec="1.0+" codebase="file://localhost/X:/path/to/jnlp/" href="software.jnlp">
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic