Eclipse裡面JDK JRE還有tomcat紊亂的解決辦法.
阿新 • • 發佈:2018-11-07
問題
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,換成對應的版本即可