This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes downloading multiple jars through jnlp and packaging third party jars for JWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "downloading multiple jars through jnlp and packaging third party jars for JWS" Watch "downloading multiple jars through jnlp and packaging third party jars for JWS" New topic
Author

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

Bhakta Pradhan
Greenhorn

Joined: Nov 26, 2010
Posts: 22
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Nov 26, 2010
Posts: 22
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.
 
wood burning stoves
 
subject: downloading multiple jars through jnlp and packaging third party jars for JWS
 
Similar Threads
jar file with in a jar file
Signing JNLP - Where does JNLP-INF directory go?
programatically invoke commands to third party JNLP link & read output
Accessing third party jars by an application using Java Web Start
Saving a resource on a client--best practices question