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

  • Home
  • SEARCH
  • 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 3975476
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:41:23+00:00 2026-05-20T04:41:23+00:00

So I was compiling a package using javac -Xlint from the command prompt and

  • 0

So I was compiling a package using javac -Xlint from the command prompt and then it was complaining:

package javax.servlet does not exist

I know that this refers to the servlet jar from the tomcat and I acquired the jar…my question is how do I get javac to know the path to this jar so that it wont spill out this error

  • 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-20T04:41:24+00:00Added an answer on May 20, 2026 at 4:41 am

    javac.exe has a -classpath option. Add all paths and JARs there.

    If you use an IDE, you’ll need to figure out how to set up its build CLASSPATH.

    Or learn Ant.

    If you’re developing a servlet, you’ll have to deploy it in a WAR file. Fortunately the servlet.jar for Tomcat is in its /lib directory, so the Tomcat class loader will find it.

    Your WAR file’s WEB-INF/lib JARs are automatically in the CLASSPATH at runtime; so are all the .class files Tomcat finds in your WEB-INF/classes.

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

Sidebar

Related Questions

When compiling the following simpleType with the XJC compile (from the JAXB package)... <xs:simpleType
I am compiling a package using maven and it says build failure with following
I'm using ghc 6.12.2 and the latest Data.HashMap 1.1.0 package, and while compiling with
After compiling a simple C++ project using Visual Studio 2008 on vista, everything runs
I want to run R (the statistical package) from Perl in RedHat Linux. I
I am trying to compile a library I wrote, using javac and I am
Possible Duplicate: Cannot install R-forge package using install.packages Has anyone gotten the latest version
I need to Reload a Safari extension from the command line (and also build
Packaging GWT project using mvn package fails and I have the following ouput: [INFO]
I have a problem with compiling custom widgetsets for my vaadin application using Maven.

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.