Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

downloading multiple jars through jnlp and packaging third party jars for JWS

 
Bhakta Pradhan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have developed a swing application and now I have to package it in a jar file so that it'll be used in Java web start using jnlp to launch the UI at client side. However I have used some third party jars.

1.Can anybody let me know the proper way to package them all?

2.Can I package third party jars inside my application jar file?If yes where should I keep them in the jar file so that there won't be any class path issues while launching UI at client side?

3.Do I need to download all the jars(application jar and third party jars) separately?If yes what's the technique to put the third party jars in class path at client side?
What should I mention in JNLP file to download multiple jars(third party jars)?
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There isn't any "packaging" to be done, except to put your Swing code into a jar file. Just put one <jar> element in your <resources> section for each of the jars you want to include. It makes no difference whether the jar contains your code or somebody else's code. That's all you have to do.
 
Bhakta Pradhan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul,
Thank for your Reply. I was able to launch a sample application through JWS. I just kept the third pary jars in the same location where I had put my application jar. And I added the jars in<resources> of jnlp file. It worked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic