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

后端 未结 7 1694
我在风中等你
我在风中等你 2021-02-02 08:16

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 ca

相关标签:
7条回答
  • 2021-02-02 08:52

    This might be a problem with the jdk as well. I changed my jdk version from jdk1.8.0_65 to jdk1.8.0_25. IDE version that I have is Version: Luna Service Release 2 (4.4.2).

    0 讨论(0)
  • 2021-02-02 08:53

    That is because you just changed your JRE location in the workspace property, which TOMCAT relies on.

    Please reset your tomcat property accordingly again:

    windows -> preference -> server -> Runtime Environments. To the right of Runtime Environments, you should see the servers. Remove Tomcat 8.0 and add Tomcat v9.0. Rebuild project. 
    

    You can remove and create it again, or just update it.

    0 讨论(0)
  • 2021-02-02 08:53

    Actually I just wanted to add to the knowledge here. I often run into this problem. The thing that solves it for me is to actually change the Compiler compliance level.

    Do this :

    Right click on project -> Properties

    Click on Java Compiler Tab

    UNCHECK Enable Project Specific Settings, then click on the configure workspace settings... link and make sure your compiler compliance level is set to the preferred java version your runtime cannot support.

    Once done, rebuild your project this may clear the problem.

    0 讨论(0)
  • 2021-02-02 08:58

    Window Menu -> Preferences On the left, expand the Server and click Runtime Environments Edit Server Runtime Environment. Choose JDK 1.8 Dont forget rebuild your project.

    0 讨论(0)
  • 2021-02-02 08:59

    It is because Java version in your Project Facet is 1.8 make it 1.7. Go to Project Properties -> Project Facets and on right side checkboxes, select java checkbox(It might be already selected) and select the version as 1.7 from dropdown.

    0 讨论(0)
  • 2021-02-02 09:10

    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

    0 讨论(0)
提交回复
热议问题