且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我正在编译简单的HelloWorld Java程序时找不到servlet包错误

更新时间:2023-11-18 18:54:04

1.
import javax.servlet.HttpServlet.*; Package not found.


从最后删除.*HttpServlet是一个类而不是包.

2.


Remove the .* from the end, HttpServlet is a class not a package.

2.

JAVA)_HOME = C:\java\jdk1.6\lib


是否应该在右括号中加上)"?

3.
为什么只为运行简单的servlet而为Apache设置环境变量?

4.
太多了吗?


Is the close parenthesis character ")" supposed to be there?

3.
Why are you setting an environment variable for Apache just to run a simple servlet?

4.
Is that too many of many?