0

所以我试图使用一个名为 merjapp 的 java 应用程序来合并两个数据库来合并 sqlite 数据库,我收到了这个烦人的 java 错误消息,即使在无数次谷歌搜索之后我也不知道如何修复。这里是:

Exception in thread "main" java.lang.UnsupportedClassVersionError: con/merjapp/Merge has been compiled by a more recent version of the Java Runtime <class file version 8243.8224>, this version of the Java Runtime only recognizes class file versions up to 52.0

at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at http://java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoa der.main(JarRsrcLoader.java:56)*

正如我之前所说,我搜索了解决方案,许多网站建议升级 Java 版本以匹配 JDK 和 JRE 版本,但这样做无济于事,我还验证了它们是相同的版本。我是新手,所以这可能是一个非常简单的错误,但我不知道有人知道如何解决这个问题吗?谢谢阅读

4

2 回答 2

3

用于编译 merjapp 类的 Java(编译器)版本称为:“8243.8224”。这是一个非常奇怪的版本号(对于 Java),并且与您正在运行的 JRE 版本不兼容

见消息:

"compiled by a more recent version of the Java Runtime <class file version 8243.8224>, this version of the Java Runtime only recognizes class file versions up to 52.0"

我建议你:

  • 查找/下载其他 - 更兼容 - “merjapp”的二进制文件
  • 或从源头重建它(如果可用)
于 2018-06-28T13:17:41.453 回答
0

I had this same problem, but then I realized it was because I didn't have JAVA JDK (java development kit). to get this you can go to the link bellow and install java JDK.

https://www.oracle.com/java/technologies/downloads/#jdk17-windows

于 2021-09-14T19:22:08.467 回答