我的一个毕业设计比较着急
我的实例中有个这样的步骤,还请多多指教:
实例这样说的:
(1)启动JBuilder,新建包ch08.section01,在此包下新建class文件,并命名为SendMail,输入如下代码:.............
.............
.............
.............(因为是书中的实例,绝对保证正确。)(2)新建目录ch08.ch01,在此目录下新建JSP文件,并命名为SendMail.jsp输入如下代码:.............
.............
.............
(3)在JBuilder中运行SendMail.jsp得到结果
就这几个步骤,但是我不会jbuilder9,我只是在project->project properties->paths->requied Libraries->Add->New->Add配置好classpath
把那个javamail API开发包配置对了,最后让我在jbuilder中运行SendMail.jsp提示一下错误:
"SendMail.java": package javax.servlet does not exist at line 7, column 1
"SendMail.java": package javax.servlet.http does not exist at line 8, column 1
"SendMail.java": cannot resolve symbol: class HttpServlet in class ch08.section01.SendMail at line 11, column 13
"SendMail.java": cannot resolve symbol: class ServletException in class ch08.section01.SendMail at line 14, column 29
"SendMail.java": cannot resolve symbol: class HttpServletRequest in class ch08.section01.SendMail at line 17, column 21
"SendMail.java": cannot resolve symbol: class HttpServletResponse in class ch08.section01.SendMail at line 17, column 49
"SendMail.java": cannot resolve symbol: class ServletException in class ch08.section01.SendMail at line 18, column 7
"SendMail.java": cannot resolve symbol: class HttpServletRequest in class ch08.section01.SendMail at line 72, column 22
"SendMail.java": cannot resolve symbol: class HttpServletResponse in class ch08.section01.SendMail at line 72, column 50
"SendMail.java": cannot resolve symbol: class ServletException in class ch08.section01.SendMail at line 73, column 7
"SendMail.jsp": There is no web application that can act as the root of the JSP file
我就不明白了,还希望念在我毕业在急多多指导,您们帮我也不是为分数啦,希望能得到大家的帮助如果解决小弟一定另外酬谢.........
我的实例中有个这样的步骤,还请多多指教:
实例这样说的:
(1)启动JBuilder,新建包ch08.section01,在此包下新建class文件,并命名为SendMail,输入如下代码:.............
.............
.............
.............(因为是书中的实例,绝对保证正确。)(2)新建目录ch08.ch01,在此目录下新建JSP文件,并命名为SendMail.jsp输入如下代码:.............
.............
.............
(3)在JBuilder中运行SendMail.jsp得到结果
就这几个步骤,但是我不会jbuilder9,我只是在project->project properties->paths->requied Libraries->Add->New->Add配置好classpath
把那个javamail API开发包配置对了,最后让我在jbuilder中运行SendMail.jsp提示一下错误:
"SendMail.java": package javax.servlet does not exist at line 7, column 1
"SendMail.java": package javax.servlet.http does not exist at line 8, column 1
"SendMail.java": cannot resolve symbol: class HttpServlet in class ch08.section01.SendMail at line 11, column 13
"SendMail.java": cannot resolve symbol: class ServletException in class ch08.section01.SendMail at line 14, column 29
"SendMail.java": cannot resolve symbol: class HttpServletRequest in class ch08.section01.SendMail at line 17, column 21
"SendMail.java": cannot resolve symbol: class HttpServletResponse in class ch08.section01.SendMail at line 17, column 49
"SendMail.java": cannot resolve symbol: class ServletException in class ch08.section01.SendMail at line 18, column 7
"SendMail.java": cannot resolve symbol: class HttpServletRequest in class ch08.section01.SendMail at line 72, column 22
"SendMail.java": cannot resolve symbol: class HttpServletResponse in class ch08.section01.SendMail at line 72, column 50
"SendMail.java": cannot resolve symbol: class ServletException in class ch08.section01.SendMail at line 73, column 7
"SendMail.jsp": There is no web application that can act as the root of the JSP file
我就不明白了,还希望念在我毕业在急多多指导,您们帮我也不是为分数啦,希望能得到大家的帮助如果解决小弟一定另外酬谢.........
然后我找不到servlet啊?
还有那个tomcat.jsp是自己下载的程序 还是就在jbuilder中
太无知了,见笑了
然后我找不到servlet啊?在\Tomcat \common\lib目录下。
然后我找不到servlet啊?
///////////////////////////////////////////////project->project properties->paths->requied Libraries->add->new->随意起个名,然后选择add
->在\Tomcat \common\lib目录下找到servlet-api.jar,把这个jar包选中,最后ok了