Java VM version
Java VM version
- Subject: Java VM version
- From: Joris Kluivers <email@hidden>
- Date: Tue, 6 Jun 2006 12:58:51 +0200
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?
Thanks,
Joris Kluivers
_______________________________________________
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