Re: Unsupported major.minor version 49.0
Re: Unsupported major.minor version 49.0
- Subject: Re: Unsupported major.minor version 49.0
- From: "Andrea \"XFox\" Govoni" <email@hidden>
- Date: Tue, 02 May 2006 02:44:27 +0200
Jim Geldermann ha scritto:
>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>> IONstateAgent (Unsupported major.minor version 49.0)
>> <http://developer.apple.com/qa/qa2006/qa1474.html>
> Thanks for the link, but the solution is wrong. I had tried the
> solution before I sent a message to the list and it did not work. The
> correct solution is in the Pure Java Specific area and the Target VM
> Version needs to be set to 1.4+ not 1.4*
I don't think the technote is wrong (or, at least, not where you think
it is: see [1] and the other posts of the thread for the
-bootclasspath option details).
The technote states "If your application is using JDK 1.5 APIs, then it
obviously requires 1.5 and a 1.4- or 1.3-based JVMVersion key is not
appropriate. You should change your required version to 1.5* or 1.5+.
For more on the JVMVersion property list key see the Java Dictionary
Info.plist Keys [2] section of Java Property, VM Option, and Info.plist
Key Reference for Mac OS X [3]."
The table describing the values to specify the Java version in Mac OS X
states the followig:
String: 1.4*
Java version used: 1.4.2
Notes: Specifies the highest version of the Java 1.4 available. Note
that if Java 1.4 is updated in future releases of Mac OS X, the latest
version of Java 1.4 will be used.
String: 1.4+
Java version used: 1.4.2 <-- outdated, now should be 5.0
Notes: Specifies the highest version of Java above 1.4. Note that if
Java is updated in future releases of Mac OS X, the latest version of
Java will be used.
String: 1.5*
Java version used: 5.0
Notes: Specifies the highest version of the J2SE 5.0 available. Note
that if J2SE 5.0 is updated in future releases of Mac OS X, the latest
version of J2SE 5.0 will be used.
String: 1.5+
Java version used: 5.0
Notes: Specifies the highest version of Java above 5.0. Note that if
Java is updated in future releases of Mac OS X, the latest version of
Java will be used.
If you specify 1.4+ and your app is runned on a Mac OS X with no Java 5
installed, it will start with the 1.4 JVM and will throw the unsupported
major.minor version error.
I think the right value to set in the Target VM Version field should be
1.5* or 1.5+.
I don't know what will happen when the app is launched on a Mac OS X
system without Java 5 installed but I assume it will tell the user that
it needs a most updated Java installation to run the app.
[1] <http://lists.apple.com/archives/java-dev/2006/Apr/msg00439.html>
[2]
<http://developer.apple.com/documentation/Java/Conceptual/JavaPropVMInfoRef/Articles/JavaDictionaryInfo.plistKeys.html#//apple_ref/doc/uid/TP40001969>
[3]
<http://developer.apple.com/documentation/Java/Conceptual/JavaPropVMInfoRef/index.html>
--
Andrea "XFox" Govoni
AIM/iChat/ICQ: email@hidden
Yahoo! ID: xfox82
Skype Name: draykan
PGP
KeyID: 0x212E69C1
Fingerprint: FBE1 CA7D 34BE 4A53 9639 5C36 B7A0 605F 212E 69C1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden