vscode无法运行java项目,
报错:A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: hello has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
根据查到的配置了jdk1.8,还是报错,请各位帮忙看看
jdk版本不一致导致的 52.0是1.8 61对应的的是17还是多少吧,设置为一样的就行了