• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting version of JavaVM?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: NSUndoManager across multiple nibs
  • Next by Date: NSURLConnection in NSEventTrackingRunLoopMode
  • Previous by thread: Re: When/Where does the text system create it's NSRulerMarkers?
  • Next by thread: NSURLConnection in NSEventTrackingRunLoopMode
  • Index(es):
    • Date
    • Thread