apache tomcat 9.x not working with eclipse & Java 10.0.1

前端 未结 3 602
礼貌的吻别
礼貌的吻别 2020-12-01 12:54

I\'ve installed apache-tomcat-9.0.7 on my windows machine and have following environment configurations:

echo %JAVA_HOME%

C:\\Program Files

3条回答
  •  遥遥无期
    2020-12-01 13:49

    In my Eclipse Oxygen IDE, WTP version did not update as suggested by @nitind.

    I figured out a fix with some trial and error as I wanted to change JRE version for Tomcat

    1. To use Tomcat 8 with JRE 8 Eclispe --> Preferences --> Server --> Runtime Environments --> Select Tomcat 8 --> Edit --> Change default JRE to JRE 8

    Also change JDK version in Compiler & Project Facets

    1. Eclispe --> Preferences --> Server --> Runtime Environments --> Select Tomcat 9 --> Edit --> Change default JRE to JRE 9

    Also change JDK version to 9 in Compiler & Project Facets

    Also need to remove -Djava.endorsed argument from "Runtime Configurations" in Project right click --> Run As --> Run Configurations --> Apache Tomcat

    It will surely work! :)

提交回复
热议问题