java.lang.UnsupportedClassVersionError: Bad version number in .class file

Coderanch | karimkhan pathan | 7 years ago
  1. 0

    Error running class files on other system ..

    Coderanch | 7 years ago | karimkhan pathan
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Unsupported major.minor version 50.0 (JBoss/WildFly forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.UnsupportedClassVersionError: trivera/j2ee/web/servlets/hello/HelloServlet (Unsupported major.minor version )
  4. 0

    Error while developing my first android app with IntelliJ Idea

    Stack Overflow | 5 years ago | codeKNIGHT
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedClassVersionError

    Bad version number in .class file

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    4. java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    5. java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    6. java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    7. java.security.AccessController.doPrivileged(Native Method)
    8. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    9. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    10. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    10 frames
  3. org.jboss.ws
    DeployerInterceptorJSE.create
    1. org.jboss.ws.integration.jboss.DeployerInterceptorJSE.isWebserviceDeployment(DeployerInterceptorJSE.java:124)
    2. org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:76)
    3. org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74)
    3 frames
  4. JBoss Application Server System JMX
    SubDeployerInterceptor.invoke
    1. org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
    2. org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
    2 frames
  5. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    4 frames
  6. Unknown
    $Proxy39.create
    1. $Proxy39.create(Unknown Source)
    1 frame
  7. JBoss Application Server System JMX
    MainDeployer.deploy
    1. org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
    2. org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
    3. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
    4. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    4 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  9. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  10. JBoss Application Server J2SE
    Invocation.dispatch
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    1 frame
  11. org.jboss.mx
    AbstractInterceptor.invoke
    1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    1 frame
  12. JBoss Application Server J2SE
    Invocation.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    1 frame
  13. org.jboss.mx
    ModelMBeanOperationInterceptor.invoke
    1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    1 frame
  14. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    4 frames
  15. Unknown
    $Proxy8.deploy
    1. $Proxy8.deploy(Unknown Source)
    1 frame
  16. org.jboss.deployment
    AbstractDeploymentScanner.startService
    1. org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    2. org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    3. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    4. org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
    4 frames
  17. JBoss Application Server System
    ServiceMBeanSupport.jbossInternalLifecycle
    1. org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    2. org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    2 frames
  18. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  19. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  20. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4 frames
  21. JBoss Application Server System
    ServiceController$ServiceProxy.invoke
    1. org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    1 frame
  22. Unknown
    $Proxy0.start
    1. $Proxy0.start(Unknown Source)
    1 frame
  23. JBoss Application Server System
    ServiceController.start
    1. org.jboss.system.ServiceController.start(ServiceController.java:417)
    1 frame
  24. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  25. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  26. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    5. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    5 frames
  27. Unknown
    $Proxy4.start
    1. $Proxy4.start(Unknown Source)
    1 frame
  28. JBoss Application Server System JMX
    MainDeployer.deploy
    1. org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
    2. org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    3. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    4. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    5. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    5 frames
  29. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  30. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    1 frame
  31. JBoss Application Server J2SE
    Invocation.dispatch
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    1 frame
  32. org.jboss.mx
    AbstractInterceptor.invoke
    1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    1 frame
  33. JBoss Application Server J2SE
    Invocation.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    1 frame
  34. org.jboss.mx
    ModelMBeanOperationInterceptor.invoke
    1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    1 frame
  35. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    4 frames
  36. Unknown
    $Proxy5.deploy
    1. $Proxy5.deploy(Unknown Source)
    1 frame
  37. JBoss Application Server System JMX
    ServerImpl.start
    1. org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    2. org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    2 frames
  38. JBoss Application Server Server
    Main$1.run
    1. org.jboss.Main.boot(Main.java:200)
    2. org.jboss.Main$1.run(Main.java:490)
    2 frames
  39. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:595)
    1 frame