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 6651427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:00:35+00:00 2026-05-26T01:00:35+00:00

Up to this point I used the Tomcat installation that comes with servlet-api.jar to

  • 0

Up to this point I used the Tomcat installation that comes with servlet-api.jar to compile my java files. Is there another way to compile it? Simply using the JDK?

  • 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-26T01:00:36+00:00Added an answer on May 26, 2026 at 1:00 am

    Note: This answer supposes your project includes some servlets, or other Servlet-related components, which can be guessed from your question.


    No, you can’t compile your project using only the JDK. The reason for this is that classes defined in servlet-api.jar does NOT exist in the standard class library, and the compiler does NOT know their definition (what are their methods, attributes, and so on).

    If you want to use Servlet-related classes, you need to include a working copy of servlet-api.jar in your project. This copy can come from Tomcat, as in your case, or from another Servlet-compliant application server, such as GlassFish, JBoss, Jetty, or one of the many other existing ones.

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

Sidebar

Related Questions

Becase I've seen (and used) situations like this: In header.h: class point { public:
I'm convinced at this point that I should be creating subclasses of std::exception for
It seems (at least that is our understanding of the issue at this point)
I'm thinking over an ASP.NET application that uses ESENT for persistance. At this point
Today, reading Servlet 3.0 specification, I've come across a sentence: We emphasize that this
At this point, we have three websites, an open api, some ten services, and
Up to this point I've used procedural standalone autoloader functions and registered them with
I have an application that writes information to file. This information is used post-execution
I'm getting used to TDD, but up to this point I only had to
I've followed another stackover flow thread to get to this point, it was this

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.