The moose likes JNLP and Web Start and the fly likes JAR file not running in 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 "JAR file not running in JNLP" Watch "JAR file not running in JNLP" New topic

JAR file not running in JNLP

Joan Krammer

Joined: Nov 01, 2012
Posts: 6

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

Joined: May 12, 2014
Posts: 2
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

Joined: May 26, 2013
Posts: 76
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">
I agree. Here's the link:
subject: JAR file not running in JNLP
It's not a secret anymore!