UnsupportedClassVersionError解决方法

2018-12-04  本文已影响0人  狗嗨旺

在windows上开发用的JDK11,部署到服务器上,服务器上的是openjdk 1.8.0_191,所以会有错误:

java.lang.UnsupportedClassVersionError: com/aiator/skin/UploadFile has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [com.aiator.skin.UploadFile])

原因是:


image.png

原来以为要在下载JDK8,后来发现不用,直接在Eclipse上改下设置就行。


image.png

完美

上一篇 下一篇

猜你喜欢

热点阅读