Exception in thread "main" java.lang.UnsupportedClassVersionError: org/example/JobMain has been compiled by a more recent version of the Java Runtime (class file version 61.0), 问题的解决(已解决)

问题描述

使用hadoop在虚拟机里面运行打包的程序出错:

问题解决

我一开始用的是JDK17,然后换成了JDK8,再将程序打包,就解决啦!

就是我本机的JDK版本比虚拟机里面的JDK版本高太多了,改成低版本的就ok啦!

posted @ 2023-10-06 16:33  yesyes1  阅读(34)  评论(0编辑  收藏  举报