如何解决我收到的Java错误

时间:2019-06-14 09:28:18

标签: java

我是Java编程的初学者。我前一段时间安装了Jedit,然后Jedit要求我安装Java应用程序,所以我做到了。当我尝试编译我的第一个代码时,它告诉我我遇到了PATH问题,因此我下载了“ JDK 12.0.1”,并且解决了PATH问题。当我尝试运行代码时,它会自行显示此错误

有人可以帮我吗?

我在网上搜索,但似乎没有任何作用

这是我收到的错误消息

>   "java.lang.UnsupportedClassVersionError: Example1 has been compiled
> by a more recent version of the Java Runtime (class file version
> 56.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(Unknown Source) at
> java.security.SecureClassLoader.defineClass(Unknown Source) at
> java.net.URLClassLoader.defineClass(Unknown Source) at
> java.net.URLClassLoader.access$100(Unknown Source) at
> 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
> sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at
> java.lang.ClassLoader.loadClass(Unknown Source) at
> sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Error: A
> JNI error has occurred, please check your installation and try again
> Exception in thread "main" Process java exited with code 1"

0 个答案:

没有答案