简体   繁体   English

在eclipse java中设置构建路径

[英]Setting build path in eclipse java

I have searched stackoverflow before posting this question. 在发布此问题之前,我已经搜索了stackoverflow。

In eclipse i am running a tomcat server. 在eclipse中我正在运行一个tomcat服务器。 I deleted the .class files from the work folder of the tomcat server. 我从tomcat服务器的工作文件夹中删除了.class文件。 From then on I am facing the issue saying the class couldnot be found. 从那时起,我面临的问题是无法找到课程。 I re-built the project. 我重建了这个项目。 Didnt help 没有帮助

Can you please suggest how to fix this issue. 你能否建议如何解决这个问题。

You should NOT run Tomcat as a normal program inside Eclipse. 您不应该在Eclipse中将Tomcat作为普通程序运行。 You should use the EE version of Eclipse, and then add Tomcat in the server view. 您应该使用EE的EE版本,然后在服务器视图中添加Tomcat。 This will allow you to deploy Dynamic Web Projects directly to Tomcat or any other supported server. 这将允许您将Dynamic Web Projects直接部署到Tomcat或任何其他受支持的服务器。

从eclipse服务器视图中删除服务器并再次创建它。

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

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