Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reference a jar

 
Ananth Ram
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, used the console to debug the message, included system property webstart/true. All worked fine.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic