By Fraaargh
via fraaargh.wordpress.com
Published: Jul 14 2008 / 14:30
Here’s a brief “how-to” for remembering what is possible with a jar file, how to use it, launch its main class and define where the other jars (the libraries used) are stored.
I could not find anywhere on the net a good explanation of all this, so decided to write my own.
Comments
unchqua replied ago:
http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#JAR%20Manifest
http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html
bloid replied ago:
>> I could not find anywhere on the net a good explanation of all this
Seriously?
Also, the layout on the blog entry if anything makes a simple topic more confusing...
Francois MAROT replied ago:
@unchqua : yes I red all the docs you provided, but they were very unclear to me (I like concrete examples) Moreover, it's never written anywhere that you can't use both -cp and -jar at the same time... Which appears to me as a "would be usefull" feature. I'll add that Sun's examples are always with one jar in the CP... What about the separator who differ whether you set the CP on the command line ( ":" or ";" for Linux & Windows respectively) or in the Manifest (" ") ?!
@bloid : see above. About the layout, you're so right ! Shame on me, I'll update it a bit ;)
,
,
Voters For This Link (7)
Voters Against This Link (1)