Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Java
  4. UnsupportedClassVersionError/Unsupported major.minor version 50.0

UnsupportedClassVersionError/Unsupported major.minor version 50.0

Scheduled Pinned Locked Moved Java
c++javahelpquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ravi120486
    wrote on last edited by
    #1

    Hi all , I have the class file (HelloWorld.class) calls a native method, and the native library (Hello-World.dll) implements the native method. While running the HelloWorld class I am getting following error: Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorld (Unsupported major.minor version 50.0) Is this error releted to Java version? I am using JDK 1.6.

    D J 2 Replies Last reply
    0
    • R ravi120486

      Hi all , I have the class file (HelloWorld.class) calls a native method, and the native library (Hello-World.dll) implements the native method. While running the HelloWorld class I am getting following error: Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorld (Unsupported major.minor version 50.0) Is this error releted to Java version? I am using JDK 1.6.

      D Offline
      D Offline
      David Skelly
      wrote on last edited by
      #2

      The most likely cause is that the HelloWorld class was compiled to version 1.6 but you are trying to run it with a 1.5 JVM. Although Java is backwards compatible (a 1.6 JVM will run 1.5 code) it does not work the other way round.

      1 Reply Last reply
      0
      • R ravi120486

        Hi all , I have the class file (HelloWorld.class) calls a native method, and the native library (Hello-World.dll) implements the native method. While running the HelloWorld class I am getting following error: Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorld (Unsupported major.minor version 50.0) Is this error releted to Java version? I am using JDK 1.6.

        J Offline
        J Offline
        jiteshmohite 7342 com
        wrote on last edited by
        #3

        yaaaaaaaaaaaa

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups