com/mycompany/MyClass (Unsupported major.minor version 49.0)

Samebug tips2

Update "latest" to Java 8 on DockerHub.

You're using an older version of java with classes compiled for java7

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4831

  • via Hibernate JIRA by Dan Bradley, 1 year ago
    com/mycompany/MyClass (Unsupported major.minor version 49.0)
  • via Hibernate JIRA by Dan Bradley, 1 year ago
    com/mycompany/MyClass (Unsupported major.minor version 49.0)
  • via Coderanch by Aditya Kanitkar, 9 months ago
    MyClass (Unsupported major.minor version 49.0)
  • Stack trace

    • java.lang.UnsupportedClassVersionError: com/mycompany/MyClass (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at Source) at Source) at$100(Unknown Source) at$ Source) at Method) at Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.hibernate.util.ReflectHelper.classForName( at org.hibernate.util.ReflectHelper.reflectedPropertyClass( at org.hibernate.mapping.SimpleValue.setTypeUsingReflection( at org.hibernate.cfg.HbmBinder.bindSimpleId( at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues( at org.hibernate.cfg.HbmBinder.bindRootClass( at org.hibernate.cfg.HbmBinder.bindRoot( at org.hibernate.cfg.Configuration.add( at org.hibernate.cfg.Configuration.addInputStream( at org.hibernate.cfg.Configuration.addFile( at org.hibernate.console.ConsoleConfiguration$1.execute( at org.hibernate.console.execution.DefaultExecutionContext.execute( at org.hibernate.console.ConsoleConfiguration.buildWith( at at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren( at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren( at org.eclipse.ui.progress.DeferredTreeContentManager$ at

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    Unknown user
    Once, 3 months ago
    2 times, 3 months ago
    Unknown user
    Once, 6 months ago
    Once, 7 months ago
    66 more bugmates