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

  1. ,
    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.

  2. ,
    Expert tip

    This might be caused by and outdated version of Java, SonarQube now uses Java 8 as default. You might upgrade java or use an older version of SonarQube.

Solutions on the web

via shelled by rsumilang
, 1 year ago
Bad version number in .class file
via eclipse-ccase by urs_maverick
, 1 year ago
Bad version number in .class file
via eclipse-ccase by raspy
, 1 year ago
Bad version number in .class file
via eclipse-ccase by lzheng
, 1 year ago
Bad version number in .class file
via shelled by tbartold
, 1 year ago
java.lang.UnsupportedClassVersionError: Bad version number in .class file	at java.lang.ClassLoader.defineClass1(Native Method)	at java.lang.ClassLoader.defineClass(ClassLoader.java:675)	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)	at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274)	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)	at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:267)	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)	at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:263)	at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:233)	at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:846)	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:606)	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)	at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:337)	at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:325)	at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:187)	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3474)	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)