新建maven工程运行出现Intellij idea 报错:Error : java 不支持发行版本5

Step1点击:

![](https://img2018.cnblogs.com/blog/1521179/202001/1521179-20200125134637770-829736709.png) ![](https://img2018.cnblogs.com/blog/1521179/202001/1521179-20200125134812930-1799499828.png) 点击![](https://img2018.cnblogs.com/blog/1521179/202001/1521179-20200125134912348-364579458.png) 保持一致:![](https://img2018.cnblogs.com/blog/1521179/202001/1521179-20200125134937377-78699299.png)

Step2点击

![](https://img2018.cnblogs.com/blog/1521179/202001/1521179-20200125134957037-1777109191.png) ![](https://img2018.cnblogs.com/blog/1521179/202001/1521179-20200125135135067-1394716494.png) 这样就可以了。

主要是运行时jdk版本不一致的问题

不一样的烟火
原文地址:https://www.cnblogs.com/cstdio1/p/12232991.html