Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UnsupportedClassVersionError

0 views
Skip to first unread message

leo v

unread,
May 11, 2005, 5:23:47 PM5/11/05
to
When I try to run my program -using the comm api and native win32comm.dll, I get the
following error:
java.lang.UnsupportedClassVersionError: comportize/Comportize (Unsupported major.minor
version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

The javadocs tell: Thrown when the Java Virtual Machine attempts to read a class file
and determines that the major and minor version numbers in the file are not supported

Can anybody explain?

thanks

leo

John McGrath

unread,
May 11, 2005, 7:50:56 PM5/11/05
to
On 5/11/2005 at 5:23:47 PM, leo v wrote:

> java.lang.UnsupportedClassVersionError: comportize/Comportize
> (Unsupported major.minor version 49.0)

Sounds like you compiled with JDK 1.5 and are trying to run with a 1.4 or
earlier JRE. If you are using 1.5 features, you will need to use a 1.5
JRE. If not, you can still compile with 1.5, but you will need to specify
1.4 (or earlier) for the -source and -target options.

--
Regards,

John McGrath

0 new messages