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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:00:12+00:00 2026-05-22T17:00:12+00:00

I have a Java project that references j2ee.jar. Is there an easy way to

  • 0

I have a Java project that references j2ee.jar. Is there an easy way to verify if the project needs j2ee environment or web container to run? Or if just having the JRE is sufficient?

  • 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-22T17:00:13+00:00Added an answer on May 22, 2026 at 5:00 pm

    If the project is a web project with a /WEB-INF folder with a web.xml file, contains eventually some HttpServlet classes and/or JSP files and the project is distributed in flavor of a WAR file, then it definitely requires a servletcontainer to run.

    But if it doesn’t and it is supposed to be executed as a Java application by a main() method, then it does not require a servletcontainer to run.

    Probably the project is for some unobvious reason utilizing specific classes in the j2ee.jar. Hard to tell which ones it are and if it is really necessary. I’d import the project in an IDE, remove the j2ee.jar and check if IDE complains about missing imports.

    Regardless, you would normally not include j2ee.jar in a project that way. It’s a servletcontainer specific library which should alreay be shipped with the servletcontainer itself and should be untouched by the developer.

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

Sidebar

Related Questions

I have a Java project that needs a addon interface. I was thinking about
I have a project in Java I am running that uses an external JAR
I have plain Jar Project that reference by android application. Then, I have Functions.java
I have a Java Web Services project that was created in an older version
I have a Java project that I'm trying to implement with a model-view-controller design.
I have a Java project that I build using an Ant script. I am
Say I have a GUI Java project of something that simulates an ATM machine,
i have a java ee project which has a text file that uses a
In a software-project written in java you often have resources, that are part of
Java Newbie here. I have a JFrame that I added to my netbeans project,

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.