Question:
Compiling problem for Servlet?
Kishor J
2009-04-09 23:21:25 UTC
after compiling my servlet's program Im getting error as: package javax.servlet doesn't exists. plz tel me the solution for this problem
Four answers:
Mani S
2009-04-10 03:31:04 UTC
What server do you use? Apache? Glassfish?

If its apache, when compiling the Java program, compile it as following.

javac ServletName.java -"c:\Program Files\Apache Software Foundation\ Tomcat 4.1\Common\lib\Servlet.jar"



The "Servlet.jar" file contains the necessary classes the aid the execution of your Servlet program. Hope this helps. If it does, please select my answer as the best one. Happy programming :)
2009-04-10 06:09:54 UTC
computer programming service,web site design,homework help

custome website design etc, at

http://myxoop.org/
Log4J
2009-04-09 23:58:28 UTC
Make sure that the required jars are in your classpath. If you're running Windows, you need to check the environment variable called CLASSPATH.
?
2009-04-09 23:32:12 UTC
computer programming service,web site design,homework help

custome website design etc, at

http://alldatabase.info/


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...