2

我在 Windows 8.1 上安装了以下版本的 Java。JAVA_HOME环境变量指向新安装的 JDK 库。

java 15 2020-09-15
Java(TM) SE Runtime Environment (build 15+36-1562)
Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)

当我启动 SoapUI 5.6 时,我收到以下错误消息:

java.lang.UnsupportedClassVersionError: com/eviware/soapui/SoapUI has been compiled by a more recent version of the Java Runtime (class file version 53.0), 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(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:81)
    at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
    at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25)
4

2 回答 2

2

请参阅链接以获取修复,这是一个不同的 Java 版本。

要求说Java 7 ,实际上不止一推荐Java 8 。

但是,是的,我认为错误

com/eviware/soapui/SoapUI has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0

对主要的 Java 版本具有误导性。对Java版本有更好理解的人可能能够解释。

于 2020-09-30T13:25:15.507 回答
1

这只是一种解决方法。

转到安装目录(例如 C:\Program Files\SmartBear\SoapUI-5.6.0\bin)并启动soapui(Windows 批处理文件)而不是SoapUI-5.6.0(应用程序)。

这工作正常。

于 2021-11-30T17:05:10.050 回答