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: Bundling a VM with OS X applications - unfortunately not!!



Steve Bland <email@hidden> wrote:

>Sorry Greg, when I said "and a set of libraries', I should have said a
>set of jar files to be more clear. which is in fact the case with a
>bundled JRE.

You were right the first time. A bundled JRE contains native code in JNI
libraries. How could it be otherwise? The class-libraries call
System.loadLibrary() to load JNI libraries, and those darn sure better
match the Java classes that are asking to load them.


>You know the versions of those jar files, you know what is
>in the lib/ext directory and the versions contained within and no one
>can overwrite them unintentionally.

True, but those JNI libraries, and the native code of the JVM itself, still
calls into shared-libraries provided by the OS.

If you've never had a case of a JRE failing due to an OS upgrade, that does
not preclude it from happening in the future. Or as it says in the
prospectus for all my mutual funds, "Past history is no guarantee of future
performance."


The simplest way to approach this whole issue is to consider static binding
of a JRE as a platform-dependency. You may dislike dealing with
platform-dependencies when writing and deploying Java programs (the
unresolved ones in File make me cringe), but those are the facts and it's
best to accept them on their own terms.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



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.