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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:06:50+00:00 2026-05-26T15:06:50+00:00

While creating one folder in src directory in one project in eclipse, it makes

  • 0

While creating one folder in src directory in one project in eclipse, it makes that folder a package. Is there any way to avoid this folder from automatically being a package?
e.g., I add main folder in src directory. I don’t want it to become a package. How can I do this?

Suppose I add folders in this manner: src/main/org/apache. I don’t want main.org.apache to be a package, instead, I want the packaging to start from org. (i.e., org.apache).

  • 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-26T15:06:50+00:00Added an answer on May 26, 2026 at 3:06 pm

    Eclipse forces you distinguish between source directories and ordinary folders. Any subdirectories in a source folder will be considered a package.

    In your case, you can create an ordinary folder outside of src/ to prevent the subdirectories from being interpreted as packages.

    Alternatively, you can modify the project properties to have src/ be considered an ordinary directory, and put a source directory within it.

    You can manage which directories in a project are considered source directories by:

    1. Right-clicking your project, then click Properties.
    2. In the left pane, click Java Build Path. In the right pane, select the Source tab.
    3. Here you can add/edit/remove source folders.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to change the page size and layout while creating the
I'm creating one UIViewController that operates a calculator interface, while another UIViewController deals with
While creating classes in Java I often find myself creating instance-level collections that I
while creating a thread in java, there is two ways such as Extending threads
While creating JavaScript with ASP.NET MVC I noticed several scope warnings and realized that
I just noticed while creating a RESTful WCF service that the Method parameter on
in this answer he said that i can use RIA services while creating my
I am using database in one of my application while creating database. I am
I'm trying to use domain driven design while creating a website that is publicly
I have a form that a user would fill out while creating a ticket

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.