Please help 'package javax.servlet does not exist'
I am having some issues and need help. I am new at Java developement and need to do an assignment. My Virtual has the following:
- Tomcat 5.5
- jdk 1.5.0_02
I have heard that there are better IDE's but not interested as Textpad is plain and simpel to me for what I need to do.
Now the problem I am getting when importing javax.servlet.* I get the following when compiling
- package javax.servlet does not exist
- cannot find symbol symbol: class HttpServlet
I did research and all says that the classpath needs to change to point to 'C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar'
so I took the steps to do this but then I get another error 'Exception in thread "main" java.lang.NoClassDefFoundError: myTest'.
Can anyone please tell me how would be the simplest to get around this and what am I missing??