我需要JDK来使用Eclipse Helios和Tomcat 7.0.33吗? [英] Do I need JDK to work with Eclipse Helios and Tomcat 7.0.33?

查看:164
本文介绍了我需要JDK来使用Eclipse Helios和Tomcat 7.0.33吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发动态Web应用程序。



为此,我使用的是Eclipse Helios和Tomcat 7.0.33。我的机器上安装了JRE,并且已经在JAVA_HOME路径中提供了JRE的位置。



但是当我运行任何servlet时,我会收到错误:


HTTP状态404 - 请求的资源不可用


我需要一个JDK代替JRE(意思是我必须设置JDK的路径代替JRE)?或者还有另一个原因导致此错误发生?



寻找帮助!

解决方案

我也有同样的问题。 JDK不是问题。在编译servlet之后,您必须重新启动tomcat服务器,以便在尝试通过Web浏览器访问它之前加载您的类文件。没有更多404错误之后,servlet运行正常。


I want to develop dynamic web applications.

For this I am using Eclipse Helios and Tomcat 7.0.33. I have the JRE installed on my machine and I have provided the location of the JRE in the JAVA_HOME path.

But when I am running any servlet, I get the error:

" HTTP Status 404 " -- " The requested resource is not available "

Do I need a JDK in place of the JRE (meaning I have to set the path of the JDK in place of the JRE)? Or could there be another other reason why this error is happening?

Looking for Help!

解决方案

I had the same problem. The JDK was not the issue. After you compile your servlet you have to restart your tomcat server so it can load your class files before you try to access it through the web browser. No more 404 errors after that, servlets are running fine.

这篇关于我需要JDK来使用Eclipse Helios和Tomcat 7.0.33吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆