我试图以 JAR 形式制作一个包。但是当我尝试它时,它失败了。如何解决这个问题
java -jar out/artifacts/StrukturDasar_jar/StrukturDasar.jar
结果是这样的:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/dicoding/javafundamental/basic/Main has been compiled by a more recent version of the Java Runtime (class file vers
ion 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
我的 IDE 和 JDK:
IntelliJ IDEA 2019.1.3(社区版)
构建 #IC-191.7479.19,构建于 2019 年 5 月 28 日
JRE:1.8.0_202-release-1483-b58 amd64 JVM:JetBrains sro Windows 10 10.0
的 OpenJDK 64 位服务器 VM