Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1023853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:41:22+00:00 2026-05-16T11:41:22+00:00

I have installed Tomcat 5.5 in windows vista home basic. I have set classpath

  • 0

I have installed Tomcat 5.5 in windows vista home basic. I have set classpath to
“C:\program files\apache software foundation\tomcat 5.5\common\lib\servlet-api.jar”.
now there are two problems.
1. I could not compile my servlets. It says package javax.servlet.* dosenot exist.
2. I could not connect with local host in chrome nor in explorer.

these errors are appearing inspite of server instance running.
Classpath to java sdk and tomcat are different. is it the matter of concern.
Please help.
I have invested considerable amount of time figuring out the problem.
thanx in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:41:23+00:00Added an answer on May 16, 2026 at 11:41 am

    I could not compile my servlets. It says package javax.servlet.* dosenot exist.

    It means that the classpath for javac is not been correctly specified. It should go like so:

    javac -cp .;"/path with spaces/to/servlet-api.jar" com/example/YourServlet.class

    Note that you need to surround a path with spaces by doublequotes.

    I could not connect with local host in chrome nor in explorer. These errors are appearing inspite of server instance running.

    Then you used the wrong domain/port. When running Tomcat at the local machine, the domain should at least be localhost. The actual port can be determined in Tomcat/conf/server.xml file. It defaults to 8080, but can be changed during the Windows setup wizard. The final URL should look like http://localhost:8080. If you use port 80 which is the default HTTP port, then the :80 part can be omitted from the URL.

    Classpath to java sdk and tomcat are different.

    The %CLASSPATH% environment variable is worthless. Use -cp argument. If you want to avoid long typing/remembering everytime, consider using a .bat file with the command, or a build tool like Ant, or an IDE like Eclipse.

    The %JAVA_HOME% environment variable is however important. Tomcat needs to know it in order to have access to the toolset to compile JSP files. The %JAVA_HOME% should point to the installation directory of the JDK.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set
I have installed Apache Tomcat 6 as a Service in a Windows XP computer
I have Apache Tomcat 7 installed on Windows 7. I had its service in
When starting Tomcat 6 on Windows 7 Enterprise with JRE 6 using C:\Program Files\Apache
I have a windows vista :( machine that I have installed Tomcat on. I
I have Tomcat 6.0.24 64 bit installed on two Windows Server 2008 boxes as
I am new to java vaadin framework. I have installed APACHE TOMCAT 6 and
I installed the BIRT Viewer in Apache Tomcat 7, but I have this error
I'm having trouble installing Tomcat on my windows XP machine. I already have Apache
I have one basic web project using spring in eclispe. I have installed tomcat

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.