Eclipse里面JDK JRE还有tomcat紊乱的解决办法.

问题

I am using up-to-date Eclipse Luna which should be ready for Java 8. However when I choose to create a new server with Tomcat 7 and click Next, in the Add and Remove screen I can’t move my project because “Project facet Java version 1.8 is not supported.” What is the problem and how can I fix this?

Getting “Project facet Java version 1.8 is not supported.” in Eclipse Luna

解决方法:

I solved the problem. Go to Project Properties -> Project Facets -> Runtime -> New -> Add a tomcat server and in JRE select JRE1.8.0_XX.

Did the work for me

补充

如果jre版本对不上的话:
右键项目buildpath,libary里面有个jre,换成对应的版本即可

参考

https://stackoverflow.com/questions/28995358/getting-project-facet-java-version-1-8-is-not-supported-in-eclipse-luna

猜你喜欢

转载自blog.csdn.net/qq_34453300/article/details/83661198