Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAR file not running in JNLP

 
Joan Krammer
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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.

 
Gerry Krupka
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.


 
Tom Landry
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • 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">
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic