Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Servlet Errors/Classpath

  • 02-03-2006 11:06AM
    #1
    Closed Accounts Posts: 3


    Hi,

    I'm getting a few errors when running Tomcat. I think that the problem is my classpath (environment errors - the bane of my life)

    Any idea how to solve this:
    package javax.serlvet does not exist
    import javax.servlet.*;

    it could be that I am using the wrong servlet jar. Is there a specific package I should be looking for? Where do I put it? In tomcat or JAVA_HOME?

    Thanks


Comments

  • Closed Accounts Posts: 36 l337


    if its the right version you could put it in the lib dirctory of your .war file or put it in tomcat/common/lib and it should be picked up from there


  • Registered Users, Registered Users 2, Paid Member Posts: 2,032 ✭✭✭lynchie


    at what point are you getting the package not found errors? Thats a compile error. Are you getting it when tomcat is compiling ur jsps?

    Or are you trying to compile a servlet outside of tomcat? If so, make sure the servlet.jar is included on the classpath of whatever you are using to compile the code, whether its ant, command line or eclipse.


Advertisement