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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:09:08+00:00 2026-05-22T16:09:08+00:00

I have what I think is a really simple question, but I couldn’t find

  • 0

I have what I think is a really simple question, but I couldn’t find the answer after two hours looking for it (maybe I don’t know how to search, but I promise I am desperate by now…).

The thing is that I have to compile an application which uses javax.servlet.http classes, and the compiler can’t find the mentioned package (it does find other javax packages but not that one). After some time researching, I realized that servlets are not included under the standard JavaSE SDK, but they are in JavaEE. So I downloaded JavaEE (it came with glassfish), installed it, and changed system path to point to glassfish folder/jdk/ instead of my previous installation.

However, the compiler still couldn’t find the classes, so I continued investigating, and saw that additional JavaEE jars are in a different folder: glassfish/modules or something like that… So I added it to the path. However, it didn’t solve anything.

The only solution I can now think of is manually copying the servlet jar into my project/lib folder, however, the compilation should work as is (it worked as is for people that were involved in the project previously than me), so I’d like to look for a solution that made javac detect automatically the damm JavaEE modules… If someone could help me with this he/she’d really be my saviour! 😀

Thanks and regards,
pepillo

  • 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-22T16:09:09+00:00Added an answer on May 22, 2026 at 4:09 pm

    and changed system path to point to
    glassfish folder/jdk/ instead of my
    previous installation.

    You don’t need to do this.

    Just provide servlet-api.jar to your app’s classpath

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

Sidebar

Related Questions

Really quick here... I think I have the answer, but just looking for some
I have a simple question, but I can't find out the answer. I'm wondering
my question is simple, yet I couldn't find any answer of it in the
I think this may be a very simple question, but I am only just
Searched for answer for this but couldn't find anything. The closest I could find
It's really simple, I just want one screen. Wow, that [shiny thing] must have
I'm used to doing Java programming, where you never really have to think about
Today I think i might have learned something (not sure), i'm not really a
Screen is amazing, of course, but I don't want to have to think about
I think I have a solution to this, but is there a better way,

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.