简体   繁体   English

使用Tomcat在Eclipse中启动Java Project

[英]Starting Java Project in eclipse using Tomcat

I created a new Tomcat Apache Server v7.0 in Eclipse. 我在Eclipse中创建了一个新的Tomcat Apache Server v7.0。 I have a Java project which I need to run and host on this server in Eclipse. 我有一个Java项目,需要在Eclipse中的该服务器上运行和托管。 How do I run this project on the new server with the address stat.cmc.edu 如何在新服务器上使用stat.cmc.edu地址运行该项目

Ok, this link gives a quite detailed explanation on how to start the Tomcat Server from within Eclipse and deploy your project onto it. 好的, 此链接给出了有关如何从Eclipse中启动Tomcat Server并将项目部署到它的相当详细的说明。 Basically, it consists of these steps: 基本上,它包括以下步骤:

  • Start Eclipse, go to Help -> Install new software -> Choose The Eclipse Web Tools Platform -> Pick the latest SDK 启动Eclipse,转到帮助->安装新软件->选择Eclipse Web工具平台->选择最新的SDK。
  • Make sure your project is a Dynamic Web Project and configure its target runtime to be the Apache Tomcat 确保您的项目是一个动态Web项目,并将其目标运行时配置为Apache Tomcat。
  • Configure the Tomcat Server, from within Eclipse/Your project 在Eclipse /您的项目中配置Tomcat服务器
  • Run your project as "Run on Server" 以“在服务器上运行”运行项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM