question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java error on launch: Unsupported major.minor version 51.0

See original GitHub issue

Been using Dbeaver extensively for several months and loving it, then had to wipe my machine clean and start over for reasons unrelated. After reinstalling Dbeaver, I now face the following error:

See the log file /Applications/Dbeaver.app/Contents/Eclipse/configuration/XXXXXXXXXX.log

Opening said log file tells me:

!SESSION Tue Apr 03 12:02:52 GMT-06:00 2018 ------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2018-04-03 12:02:52.828
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.UnsupportedClassVersionError: org/eclipse/core/runtime/adaptor/EclipseStarter : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:650)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)

I have installed legacy Java from here: https://support.apple.com/kb/DL1572, as suggested during Dbeaver install. Also installed the latest version of Java from here just in case: https://java.com/en/download/ Working on a 2017 MacBook Pro w/ High Sierra 10.13.4.

Any thoughts? Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
elramuscommented, Apr 10, 2018

Instead of downloading and installing java from java’s website, go to Dbeaver’s download page and grab the PKG installer + JRE from there instead.

https://dbeaver.jkiss.org/download/

0reactions
michaellenahancommented, Jun 19, 2018

Alternatively, brew cask install java will provide an up-to-date java version on mac.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix java.lang.UnsupportedClassVersionError
This error means that the JRE that is being used to execute your class code does not recognise the version of Java used....
Read more >
Java - Unsupported major.minor version 51.0 - Mkyong.com
To fix it, download the Java or JDK 7, and change the default JDK from 6 to 7. Terminal. $ sudo apt-get install...
Read more >
How to Fix Unsupported major.minor version 60.0, 59.0, 58.0 ...
Similarly, the Unsupported major.minor version 52.0 means your code is compiled using JDK 8 compiler and you are trying to run it on...
Read more >
How to Fix Unsupported major.minor Version 52.0 Error in Java
The unsupported major.minor version error is thrown in Java when a class is compiled using a higher version of the Java Development Kit...
Read more >
Unsupported major.minor version 51.0 error is given when run ...
Problem. The Oozie service fails to execute the workflow when JAVA_HOME is not defined and a JDK version under 1.7 is installed. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found