Why do I get "package javax.servlet does not exist" ?
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kevin_Fonner
Posted On:   Sunday, April 29, 2001 09:07 PM

On windows 98 I get..
package javax.servlet does not exist
servlet.jar is in the classpath
what else am I missing here???

Re: Why do I get "package javax.servlet does not exist" ?

Posted By:   Alex_Chaffee  
Posted On:   Tuesday, May 1, 2001 07:58 AM

Re: HELP: I get an error when I try to compile a java servlet

Posted By:   Alex_Chaffee  
Posted On:   Tuesday, May 1, 2001 07:43 AM

Here's one way to be sure your classpath is correct: run


javap -classpath my;class;path javax.servlet.Servlet


If javap can't find it, then your classpath is wrong.


If javap can find it, then your config file or script isn't setting the classpath correctly. Perhaps it's a syntax error or you're just confused about which script/config file/setting is really getting used. Or perhaps you're using a different install of Java -- different JDKs can have different classpaths.


Good luck!

Re: HELP: I get an error when I try to compile a java servlet

Posted By:   Kursat_Demirezen  
Posted On:   Monday, April 30, 2001 07:55 AM

Try this:
Assume that you have tomcat location like:
c: omcat
at the command promt type:
set classpath=c: omcatlibservlet.jar
About | Sitemap | Contact