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.security.SecureClassLoader.defineClass(SecureClassLoader.java:133)

    [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
    1. Advertising

  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
    #2
    1. Advertising

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.
Similar Threads
  1. Robin Snow

    UnsupportedClassVersionError...

    Robin Snow, Feb 23, 2004, in forum: Java
    Replies:
    4
    Views:
    2,793
    javabudy
    Aug 28, 2011
  2. R
    Replies:
    1
    Views:
    4,835
  3. leo v
    Replies:
    1
    Views:
    4,819
    John McGrath
    May 12, 2005
  4. Replies:
    6
    Views:
    1,044
    Roedy Green
    Jul 23, 2007
  5. asit
    Replies:
    4
    Views:
    630
    nagkumar
    Jun 9, 2009
Loading...

Share This Page