File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes can't compile servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can Watch "can New topic
Author

can't compile servlet

Fred Close
Ranch Hand

Joined: Mar 13, 2001
Posts: 42

Hi,
I've got a strange problem
I have copied the servlet.jar to my jdk_home\lib\ext directory (there was no ext directory, I had to create it)
but I still can't compile a servlet, I have the following error
package javax.servlet does not exist
Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
Hi,
"all" what you need is to add the following to your classpath:
tomcat_home\lib\servlet.jar
Regards,
Fred Close
Ranch Hand

Joined: Mar 13, 2001
Posts: 42

I understood that it is possible to place jar files in the
java\lib\ext directory and so they will be accessible ???
Am I wrong ?
Fred Close
Ranch Hand

Joined: Mar 13, 2001
Posts: 42


MEA CULPA, MEA MAXIMA CULPA
I placed servlet.jar under jdk1.3\lib\ext
but it's under
jdk1.3\jre\lib\ext
that I have to place it
Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
ultimatly, you can place the jar files anywhere, AS LONG AS they are in your classpath while compiling and running.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't compile servlet