Project facet Java version 1.8 is not supported解决记录

简介: Project facet Java version 1.8 is not supported解决记录

只用了方法一,结果:解决。



一看知道是因为jdk版本不一致所导致,如何解决?


方法一:


选中项目 Properties , 选择 Project Facets,右击选择 Java , Change Version

这里写图片描述


方法二:


在 项目的目录下有一个.settings的文件夹,该文件夹下有一个org.eclipse.wst.common.project.facet.core.xml文件,内容如下;

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="jst.java"/>
<fixed facet="jst.web"/>
<installed facet="jst.web" version="2.4"/>
<installed facet="jst.java" version="8.0"/>
</faceted-project>
 

修改 <installed facet="jst.java" version="8.0"/> 为 <installed facet="jst.java" version="7.0"/> 即可。

目录
相关文章
|
22天前
|
Java Maven Android开发
【Azure Developer】VS Code打包Java maven Project 遇见 BUILD FAILURE
Unknown lifecycle phase "lean". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>
|
2月前
|
JSON Java 数据格式
java调用服务报错415 Content type ‘application/octet-stream‘ not supported
java调用服务报错415 Content type ‘application/octet-stream‘ not supported
87 1
|
4月前
|
Java
Java演进问题之Project Lilliput降低内存占用的如何解决
Java演进问题之Project Lilliput降低内存占用的如何解决
|
6月前
|
Java Linux Maven
Autogen4j: the Java version of Microsoft AutoGen
Java version of Microsoft AutoGen, Enable Next-Gen Large Language Model Applications
|
5月前
|
Java
ElasticSearch启动报错 java version is an early-access build ,only use release builds【已解决】
ElasticSearch启动报错 java version is an early-access build ,only use release builds【已解决】
64 0
|
Cloud Native Java Go
解决 Spring Boot 和 Gradle Java 版本兼容性问题:A problem occurred configuring root project ‘demo1‘. > Could n
解决 Spring Boot 和 Gradle Java 版本兼容性问题:A problem occurred configuring root project ‘demo1‘. > Could n
938 0
|
Java
【Java异常】Feign常见的坑总结之一:Method Not Allowed“,“message“:“Request method ‘POST‘ not supported“,“path“:“/*
【Java异常】Feign常见的坑总结之一:Method Not Allowed“,“message“:“Request method ‘POST‘ not supported“,“path“:“/*
254 0
解决Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 62问题~
解决Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 62问题~
184 0
|
Java Spring
Java报错Project ‘org.springframework.boot:spring-boot-starter-parent:2.x.0.RELEASE
Java报错Project ‘org.springframework.boot:spring-boot-starter-parent:2.x.0.RELEASE
124 0