But a quick search on the internet did reveal this solution:

http://one-jar.sourceforge.net/


--
Galen Rhodes
[email protected]
http://www.facebook.com/Galen1967



On Nov 4, 2009, at 3:58 PM, Galen Rhodes wrote:

Well, I've heard stories that sometimes you can, but only some implementations of the JVM will load jars from a jar. I've heard JRocket will but not Sun's.

Besides, I'll bet a well crafted ANT file could probably do all the hard work for you.

--
Galen Rhodes
[email protected]
http://www.facebook.com/Galen1967



On Nov 4, 2009, at 3:49 PM, Lon Varscsak wrote:

Interesting, I didn't know that you couldn't have jars in jars. Seems like a lot of work. :P I'll stick with a woa for now. Thanks!

-Lon

On Wed, Nov 4, 2009 at 10:48 AM, Galen Rhodes <[email protected] > wrote: This is actually something I've been giving some thought to lately and was going to try myself when I get a chance.

I think it's possible. Already it can be packaged in an EAR file for deployment to a J2EE server so deploying in just a JAR file should be possible with a little more work. I think NSBundle and WOResourceManager will extract from a JAR as well as a normal bundle since they rely on URLs but I haven't tested this.

One thing to consider is that, unlike an EAR file, the standalone JAR file cannot contain other JAR files so any other JAR files that you want to include will have to be "unjarred" and re-jarred into yours.

--
Galen Rhodes
[email protected]
http://www.facebook.com/Galen1967



On Nov 4, 2009, at 11:46 AM, Lon Varscsak wrote:

Is there a way to build an application as a jar file (including embedded frameworks) so that I can easily deploy it as a command line tool?

-Lon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/grhodes%40thissmallworld.com

This email sent to [email protected]



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/grhodes%40thissmallworld.com

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to