Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Now Available: J2SE 5.0 Release 3 Developer Preview 3



email@hidden wrote:

It would make a lot more sense to me if a compelling double-clickable jar
offered to turn itself into a bona fide app-bundle, and then set 1.5* only
on itself. This isn't as complex as it might seem, and once you make the
program that does it, it's widely reusable. A moderately capable
programmer should be able to do it in a single rainy weekend.


Sun's Java 6 source distributions come as a little Java executable-JAR installer that contains all the files in a file in the JAR and extracts them. i'm surprised no-one's written something like this, that knows about GNOME and Win32 and Mac OS.

i keep meaning to get around to it myself, but there are always other things to do first.

One simple strategy: exec() /bin/sh, and feed parameterized lines to its
stdin from a script kept as a jar-resource. A few mkdir's, cp's, chmod's,
and Voila, a bedraggled shipwrecked wench in a strange land becomes a
respected courtly gentleman.


"voila" or "Viola"?

--
Elliott Hughes, http://www.jessies.org/~enh/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.