facebook

java.lang.UnsupportedClassVersionError

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #259493 Reply

    denz97
    Participant

    I’m trying to use 1.4 SDK and I’ve already configured the workspace to use it. But I’m getting the error below running a simple hello world program but works fine if I use 1.5 SDK. Am I missing something 😕

    java.lang.UnsupportedClassVersionError: Test (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)
    Exception in thread “main”

    #259494 Reply

    denz97
    Participant

    Btw, i’m using the latest MyEclipse…

    #259516 Reply

    denz97
    Participant

    any love???

    #259525 Reply

    Haris Peco
    Member

    denz97 ,

    If you want that your project work in 1.4 and 1.5 then you have to set project propertiy (java compiler) to 1.4

    Best

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: java.lang.UnsupportedClassVersionError

You must be logged in to post in the forum log in