• 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
Re: Java VM version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java VM version


  • Subject: Re: Java VM version
  • From: Joris Kluivers <email@hidden>
  • Date: Tue, 6 Jun 2006 17:25:25 +0200


On Jun 6, 2006, at 2:43 PM, Michael Hall wrote:
Probably information and documentation you are already aware of? JNI is afaik the most officially supported java interface.
Yeah, I've read the information/documenation before. And it all seems to work, when I create a bundle with the .app extension. But I'm creating a cocoa framework which is based on a java library. Somehow all java related keys in the info.plist file like NSJavaNeeded, NSJavaPath and the JVMVersion are ignored when used in the framework. A solution would be to just add these key's to the info.plist of the application that uses the framework. But I'm developing using OCUnit which links to the framework I'm developing and executes some tests. As soon as a test executes a method that delegates to a Java object I get the known "Unsupported major.minor version" error.

The reason I set up the vm myself using NSJavaVirtualMachine is because the NSJavaNeeded doesn't work, the key should make cocoa initialize the virtual machine automatically. But I can't seem to find a objective-c code replacement for the JVMVersion.

So again thank you for all the suggestions. The only possible similar problem I found online was:
http://lists.apple.com/archives/Java-dev/2004/Oct/msg00541.html


The possible answer:
http://lists.apple.com/archives/Java-dev/2004/Oct/msg00613.html
lists the plist entries mentioned before which don't seem to work outside application bundles.


Like you suggested I posted the question on the java-dev list too.

Joris Kluivers
http://joris.kluivers.nl


_______________________________________________ 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
  • Follow-Ups:
    • Re: Java VM version
      • From: Michael Hall <email@hidden>
References: 
 >Java VM version (From: Joris Kluivers <email@hidden>)
 >Re: Java VM version (From: Michael Hall <email@hidden>)
 >Re: Java VM version (From: Joris Kluivers <email@hidden>)
 >Re: Java VM version (From: Michael Hall <email@hidden>)

  • Prev by Date: Re: RE: Re: My app does not display its version in the finder
  • Next by Date: Re: NSMovieView & Apple's Protected Video
  • Previous by thread: Re: Java VM version
  • Next by thread: Re: Java VM version
  • Index(es):
    • Date
    • Thread