zoukankan      html  css  js  c++  java
  • Target runtime Apache Tomcat v8.5 is not defined.

    Target runtime Apache Tomcat v8.5(或者其它版本) is not defined.

    这个错误通常是在从文件夹中导入别人的项目的时候发生,因为 在 .setting 中有一个XML文件配置 与当前eclipse中项目的XML配置不一样.

    原项目中的XML文件如下

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <faceted-project>
     3   <runtime name="Apache Tomcat v8.5"/>
     4   <fixed facet="jst.web"/>
     5   <fixed facet="wst.jsdt.web"/>
     6   <fixed facet="java"/>
     7   <installed facet="java" version="1.8"/>
     8   <installed facet="jst.web" version="3.1"/>
     9   <installed facet="wst.jsdt.web" version="1.0"/>
    10 </faceted-project>

    解决办法:

    Eclipse创建一个新的项目,找到对应目录下的XML文件 复制粘贴到 导入的外部项目中XML文件中

    (这是我的:)

    1 <?xml version="1.0" encoding="UTF-8"?>
    2 <faceted-project>
    3   <fixed facet="jst.web"/>
    4   <fixed facet="java"/>
    5   <fixed facet="wst.jsdt.web"/>
    6   <installed facet="java" version="1.8"/>
    7   <installed facet="jst.web" version="3.0"/>
    8   <installed facet="wst.jsdt.web" version="1.0"/>
    9 </faceted-project>

    then,Success

  • 相关阅读:
    CSS 基础(一)
    74.Search a 2D Matrix
    73.Set Matrix Zeroes
    66.Plus One
    64.Minimum Path Sum
    63.Unique Paths II
    62.Unique Paths
    54.Spiral Matrix
    59.Spiral Matrix II
    55.Jump Game
  • 原文地址:https://www.cnblogs.com/roseAT/p/10055390.html
Copyright © 2011-2022 走看看