Getting version of JavaVM?
Getting version of JavaVM?
- Subject: Getting version of JavaVM?
- From: Joseph Kelly <email@hidden>
- Date: Fri, 31 Mar 2006 15:43:40 -0800
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.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden