Mailing Lists: Apple Mailing Lists

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

Getting version of JavaVM?



Hello,

I've got a third party library that runs a Java program in a VM that it creates. Unfortunately, it only works with Java 1.4 and higher (and intermittently crashes on 1.3 or less), and not all of our target users' systems will have 1.4 installed (i.e. 10.2.8) So basically, before loading this library, I need to find which Java version is installed on the Mac.

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.

Thanks in advance,

Joe K.


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