Re: Java VM version
Re: Java VM version
- Subject: Re: Java VM version
- From: Michael Hall <email@hidden>
- Date: Tue, 6 Jun 2006 06:27:35 -0500
On Jun 6, 2006, at 5:58 AM, Joris Kluivers wrote:
Hi all,
I'm trying to use some java classes in some cocoa code I wrote. I
succeed in loading the classes, but when calling a method I get an
error: (Unsupported major.minor version 49.0). I know this happens
because the JavaVM tries to load some code compiled for a different
java version. In this case the 1.3 java vm tries to load java 1.5
code.
In normal bundle applications I know I can change the vm version to
use by setting the JVMVersion key in the Info.plist file. But at
the moment I use the java code in a framework, and setting the
JVMVersion doesn't seem to work, resulting in initializing a Java
1.3 VM instead of a 1.5 VM.
At the moment I try to use my framework in a OCUnit bundle, so
setting the JVMVersion key in the Info.plist of the final
application which is going to use my framwork will not work. Is
there a way to programatically load a java 1.5 or 1.4 VM instead of
loading the default 1.3 vm without setting the JVMVersion?
I'm pretty sure 1.3 should not be the default jvm on shipping
machines anymore. It almost definitely is not on Intel's since I
don't think a 1.3 ships at all.
You might ask the framework question on the java-dev list I pretty
much just do application bundles. Also if you are JNI attaching a jvm
different factors go into jvm version selection. You might consider
this java-dev list thread...
http://lists.apple.com/archives/java-dev/2006/Mar/msg00462.html
Mike Hall mikehall at spacestar dot net
http://www.spacestar.net/users/mikehall
http://sourceforge.net/projects/macnative
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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