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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by ERJAN

This exception occurs when using an older version of java. Mainly when trying to run a jar compiled with a newer Java version in an older Java version. We can avoid this issue by executing the jar in the same version which it was compiled.

Solutions on the web

via com.br by Unknown author, 1 year ago
Bad version number in .class file
via Stack Overflow by Daneel S. Yaitskov
, 1 year ago
Ooo has been compiled by a more recent version of the Java Runtime (class file version 0.0), this version of the Java Runtime only recognizes class file versions up to 52.0
via sourceforge.net by Unknown author, 2 years ago
Bad version number in .class file
via GitHub by dequis
, 2 years ago
MCPCPlusXNmsBlock_147 : Unsupported major.minor version 51.0
via jetbrains.com by Unknown author, 2 years ago
Bad version number in .class file
via Google Groups by dehrmann, 2 years ago
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at dori.jasper.engine.util.JRClassLoader.loadClass(JRClassLoader.java:247)
at dori.jasper.engine.util.JRClassLoader.loadClassFromBytes(JRClassLoader.java:162)
at dori.jasper.engine.design.JRAbstractJavaCompiler.loadCalculator(JRAbstractJavaCompiler.java:197)
at dori.jasper.engine.design.JRDefaultCompiler.loadCalculator(JRDefaultCompiler.java:184)
at dori.jasper.engine.fill.JRBaseFiller.loadCalculator(JRBaseFiller.java:630)
at dori.jasper.engine.fill.JRBaseFiller.(JRBaseFiller.java:327)
at dori.jasper.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:124)
at dori.jasper.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:116)
at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:111)
at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:222)
at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:209)
at undefined.Utilities.abrirRelatorioJasper(Utilities.java:848)
at undefined.Utilities.geraRelatorioJasper(Utilities.java:805)
at undefined.RegrasGuiaOdontologica.mouseReleased(RegrasGuiaOdontologica.java:152)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

Users with the same issue

19 times, 2 weeks ago
Once, 2 weeks ago
5 times, 1 month ago
Once, 2 months ago
Once, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.