今天在实验室上课搭环境遇到一个问题(别说了很凄惨,实验室的电脑很垃,上课做实验还得自己搭那些环境),运行main方法先是弹窗:
然后异常如下:
Exception in thread “main” java.lang.UnsupportedClassVersionError:
com/zk/test/test has been compiled by a more recent version of the
Java Runtime (class file version 55.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. r u n ( U R L C l a s s L o a d e r . j a v a : 362 ) a t j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d ) a t j