Sunday, August 2, 2009

My java servlets won't run it gives me the following error (any Java Gurus ?)?

C:\WTK25\apps\Cinch_Intranet Project1.0\src\cinch_intranetproject10\M... package javax.servlet does not exist





i am running my servlets in NetBeans IDE 5.5, i have also tried the standard text editors and saving the source code in my tomcat folders but i still have the same errors. This is faustrating

My java servlets won't run it gives me the following error (any Java Gurus ?)?
When you create the file in the project did you choose Web-%26gt;servlet... Should be part of the netbeans libraries. You can highlight the project, right-click and go to properties and add it that way also.
Reply:c:\tomcat





at the command promt type:


set classpath=c:\tomcat\lib\servlet.jar
Reply:you may need to place the files directory into your classpath


set CLASSPATH=CLASSPATH;yourfilesdirectory


No comments:

Post a Comment