Unable to associate project with a runtime server in eclipse IDE

前端 未结 4 745
孤街浪徒
孤街浪徒 2021-02-02 16:50

\"enterI had created a dynamic web project. AS of now it has a jsp file which am trying to run. Wh

4条回答
  •  醉话见心
    2021-02-02 17:12

    To add a project to a runtime you must have a match between your project and your runtime; you have to check:

    • project facet: to run on tomcat it must be a Dynamic Web Project
    • java version: you can't run for example a java 7 project on a java 6 runtime
    • web project version: you can't run a project that doesn't match the Java EE version deployable in the runtime

    Once you've validated the match between your project and the runtime, you need the project to target the runtime, as follows:

    1. Open the project in Package Explorer, Project Explorer, or Navigator.
    2. Right-click on the project, and select "Properties".
    3. Click on "Targeted Runtimes" in the properties window.
    4. Select the checkbox of the validated runtime that is to be targeted.
    5. Confirm by clicking "OK".

    The new runtime will be associated with that project. If a runtime that you want to select is not displayed or is disabled, you may need to uninstall one or more of the currently installed project facets. This can be done within the same Properties dialogue.

提交回复
热议问题