1. 程式人生 > >Eclipse裡面JDK JRE還有tomcat紊亂的解決辦法.

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