Re: Determining Java version used by other apps
Re: Determining Java version used by other apps
- Subject: Re: Determining Java version used by other apps
- From: Greg Bolsinga <email@hidden>
- Date: Tue, 3 Feb 2004 09:38:21 -0800
On Feb 3, 2004, at 2:20 AM, Matt Gough wrote:
There was a problem in using any of the Accessibility APIs to inspect
Java 1.4.1 applications (rdar:\3459815) which would cause them to
crash/hang. This seems to have been fixed in Java 1.4.2.
How can my app determine the version of Java in use by such apps so
that I can allow my app to work correctly with Java 1.4.2 apps?
Matt,
Good to hear that bug seems to be fixed! Would you please update it
appropriately?
From java code you can use the "java.version" property to learn the
java version. With the 1.4.2 update, it returns "1.4.2_03". You can
find a particular build by using the "java.runtime.version" property.
With the 1.4.2 update it returns "1.4.2_03-117.1". If there are ever
updates to java on Mac OS X that have the same jdk version (i.e.
1.4.2_03), only the "java.runtime.version" will change. The number
after the "-" will be larger in those releases that don't also bump the
java version.
From native code, you may be able to load the JavaVM.framework bundle
and get its version. You'd use the "CFBundleVersion" key, and with the
1.4.2 update, it should return "1.4.2 Release 1". I've never tried this
out however.
Hope that helps.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.