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



Vic Cekvenich wrote:

Thank you!

Doug Zwick wrote:

If you absolutely *must* do this

<snip>

  - if and only if the user OKs it (and the file already exists),
    go in and munge ~/Library/Caches/java/deployment.properties. It
    looks like you need to change the index numbers in the
    deployment.javaws.jre.#.* (where # is the index number, 0 is
    the highest JRE), but I haven't tried it. Keep a backup copy of
    the properties file, in case it hits the fan. Once munged, quit
    and restart your application.

Your welcome. I really don't think doing this is a good idea. If nothing else will work, you may be stuck with doing this.

The problem with doing this is that it effects more than just
your app. If this hack causes someone else's app to fail
because it ran under 1.5, they will *not* be happy with you.
It could cause other developers real, out-of-pocket expenses
(e.g. calls to a help desk).

It is also a hack. If Apple changes things in a future release,
you may be left scrambling to get a patch out to your customers
because your app crashes under 1.5.1 (or whatever). You should
always code defensively, but you can never foresee all possible
failure modes. Murphy's Law definitely applies!

You should also put the properties back the way they were once
you are up and running in 1.5 (but only if you munged them),
or if your re-launch fails (perhaps by the initial launching
process).

Better yet, distribute using JWS and use the multiple-JREs in
the J2SE tag syntax. If you distribute as an app bundle, use
your own shell script in place of Apple's Java stub to pick
the JVM using your own priorities, or to rewrite the plist to
specify the desired JVM before starting it. If you distribute
as a double-clickable JAR file, provide a Mac app bundle for
your Mac-using customers.

I think that all this hair is Apple's way of telling us that
J2SE 5 for the Mac is NOT ready for general use. Anyone using
it is living on the bleeding edge. That is not a decision you
want to make for your customer.
_______________________________________________
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.