Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

package javax.servlet not found in import?

Status
Not open for further replies.

TomBarns

Programmer
Feb 14, 2001
10
US
Hi all
I'm trying since more than two days to fix this problem and i could not,i almost did and try everything i know and i'm still
do not know how to fix it.
what i did is i put the following setting in tomcat.bat:
SET JAVA_HOME=c:\jdk1.2.2
SET TOMCAT_HOME=C:\jakarta-tomcat-3.2.1
that is only what i did for tomcat.
also here is my classpath setting:
//=====================================
.;c:\jdk1.2.2\bin;c:\jdk1.2.2\lib\tools.jar;c:\jakarta-tomcat-3.2.1\lib\servlet.jar;c:\jakarta-tomcat-3.2.1\lib\jasper.jar;c:\jakarta-tomcat-3.2.1\lib\jaxp.jar;c:\jakarta-tomcat-3. 2.1\lib\webserver.jar;c:\jakarta-tomcat-3.2.1\webapps\ROOT\api
//=====================================
I do not know what do i need to do.
please an help.
thanks
 
I had to put it in the C:\jdk1.2.2\jre\lib\ext because that is where the extension jars are suppose to be. In other words jar files that you want available to the JDK for compiling, etc.

Good luck,
Brian
 
Thank you all for your help.
Finally i got it work from the command line only after 3 times downloading and installing jdk and tomcat.
however I still can't compile my servlet from textpad.
I think there is something related to textpad and jdk.
I have rightnow jdk1.3.0-02 and tomcat4.0-b3.
please if you have any comment or any idea about what is the problem with textpad let me know.
Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top