jdk 1.4 and java.lang.UnsupportedClassVersionError

Discussion in 'Java' started by KS, Mar 5, 2004.

  1. KS

    KS Guest

    Got some code that work with the compiler set to jdk 1.3, but when i set the
    compiler to jdk 1.4 i get this error:

    [java] java.lang.UnsupportedClassVersionError: no/ds/ejbgen/EjbGenerator
    (Unsupported major.minor version 48.0)

    [java] at java.lang.ClassLoader.defineClass0(Native Method)

    [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:703)

    [java] at

    [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:320)

    [java] at java.net.URLClassLoader.access$400(URLClassLoader.java:93)

    [java] at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:678)

    [java] at java.security.AccessController.doPrivileged(Native Method)

    [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:239)

    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:516)

    [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:460)

    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:448)

    [java] Exception in thread "main"

    Is 1.4 not backward compatible with jdk 1.3 generetad code? What should i do
    to solve this. Jusing IDE called WSAD 5.1.1 that can target jdk 1.4 code.
    Any hints?
    Thanx in advance KS
    KS, Mar 5, 2004
    1. Advertisements

  2. "KS" <> writes:

    > [java] java.lang.UnsupportedClassVersionError: no/ds/ejbgen/EjbGenerator
    > (Unsupported major.minor version 48.0)

    This means a Java process running in a pre-1.4 VM tries to access
    classes compiled for 1.4. When do you get this error? When compiling
    or running? In your code or someone else's code?
    Tor Iver Wilhelmsen, Mar 5, 2004
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.