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)?
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.
Joined: Nov 26, 2010
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.
subject: downloading multiple jars through jnlp and packaging third party jars for JWS