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: Getting version of JavaVM?



Joseph Kelly wrote:

>So far I have not found any documentation which indicates how to do so
>using a clean api call. Some options I've thought of are running fork/exec
>"java -version", looking for directories that match /System/
>Library/Frameworks/JavaVM.framework/Versions/1.4*, etc -- both these
>solutions are fine, but I'd rather use a nice clean C or Obj-C api.

I think looking for a directory in the JavaVM.framework is pretty reliable,
and pretty easy to do, too.  Way easier than fork/exec'ing "java -version".

The only other approaches I can think of involve the JNI invocation API,
which is even more complex.

  -- GG


 _______________________________________________
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.