Topic: 高手快来救我(关于类路径的问题)

  Print this page

1.高手快来救我(关于类路径的问题) Copy to clipboard
Posted by: peter638
Posted on: 2004-09-02 00:48

为什么找不到啊?

UserInfoForm.java:4: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
^
1 error

2.Re:高手快来救我(关于类路径的问题) [Re: peter638] Copy to clipboard
Posted by: why
Posted on: 2004-09-02 04:53

do a search first before you ask

Possible answer: the jar file that contains javax.servlet.http.HttpServletRequest is not on your classpath.

3.Re:高手快来救我(关于类路径的问题) [Re: peter638] Copy to clipboard
Posted by: dreamchenwen
Posted on: 2004-09-02 12:26

把servlet-api.jar 复制到jdk的lib目录里面,在设置%JAVA_HOME%\servlet-api.jar


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923