aspose file tools*
The moose likes JNLP and Web Start and the fly likes Reference  a jar 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 "Reference  a jar " Watch "Reference  a jar " New topic
Author

Reference a jar

Ananth Ram
Ranch Hand

Joined: Jan 18, 2001
Posts: 99
Hi,

I have the below JNLP file. I have created the appropriate folders, when the jnlp file downloads, message the system cannot find the specified path is seen at the console.



I have the jars signed, and placed them under the folder jars/apps/jdo.jar

Could some one help me.

Also, tried launching from the url, it prompts me to open/save the jar file. When I include along with other jars within jars folder, the console throws Unable to load the resource file (jdi.jar)


Thanks,
Ananth
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The message says the system is unable to download that resource. You can find out why by asking your browser to download it: copy the URL

http://localhost:8080/myapp/jars/jdi.jar

and paste it into your browser's address bar. When the browser tells you it can't find that resource either, then go to your server and reconfigure things so that the jar is in a folder which can be accessed by the outside world. Change the JNLP file to match.
Ananth Ram
Ranch Hand

Joined: Jan 18, 2001
Posts: 99
Thanks, when I relaunch clearing the cache, I am able to access the jars. But when I move the same jar to sub folder, /myapp/jars/apps. Then I get to see the message on the console when I launch JNLP file,



Any pointers on where to look and possible cause of not recognizing the folder.

Thanks,
Ananth
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

If you want to find why the server won't server a particular URL, the place to look is... on the server. Make sure the URL is one which the server will actually serve. And make sure the jar file you want it to serve is actually in the right place to be served.
Ananth Ram
Ranch Hand

Joined: Jan 18, 2001
Posts: 99
Thanks, used the console to debug the message, included system property webstart/true. All worked fine.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reference a jar