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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:07:23+00:00 2026-05-24T18:07:23+00:00

I have just set up a new Eclipse Java project. In this project I

  • 0

I have just set up a new Eclipse Java project. In this project I included a folder called external, holding things like jars, and the source of these jars. The only source folder in the project is the empty src/ folder, neither the external/ folder nor any subdirectories of the external/ folder are marked as source folders.

Nonetheless Eclipse chooses to compile (and choke on) the source files located beneath the external/ folder. Does anybody know why it would do that, and how to stop it from attempting to compile these files?

Update

The file hierarchy is:

project/
    src/ (Marked as source folder)
    bin/
    external/ (Linked folder, not marked as source folder)

The external/ folder is created by right-clicking on the project, choosing New -> Folder, clicking advanced and choosing “Link to alternate location”. And then I have provided a relative path to a folder outside of my source hierarchy.

I have this external/ folder configured in several other projects exactly like this, without any problems.

Solution

The code was not compiled at all, Eclipse had marked warnings and errors in the source files in the external/ directory, and therefore I assumed Eclipse tried to compile these sources. However, the warnings/errors were added by my checkstyle plugin in Eclipse. Which by default parses source files in all directories in projects for which it is enabled.

Thus the solution is to instruct checkstyle only to analyse sources in folders that are marked at source folders.

Thanks for all the help.

  • 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-24T18:07:24+00:00Added an answer on May 24, 2026 at 6:07 pm

    You can toggle which folders contain code for Eclipse to compile by right clicking on the folder, highlighting Build Path, then selecting “Use as Source Folder” or “Remove from Build Path”. Any folder you remove from the Build Path will just show any .java source as a text file.

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

Sidebar

Related Questions

I am developing a simple app for blacberry with eclipse. I have just set
I am just starting out learning Java, GAE etc. I have started a project
I have just created a new folder on my server, and all the right
I have just set up cruise control.net on our build server, and I am
I have a WPF app which snaps to screen edges (I just set the
I'm pretty new to Java and am following the Eclipse Total Beginner's Tutorials .
I have taken the org.eclipse.equinox.p2.examples.rcp.prestartupdate project and adapted it for use in my RCP
I have just started working at a new place and they don't have any
Have a project compiled to use (TargetFrameworkVersion) framework version 3.0 however it looks like
I have found this example on StackOverflow: var people = new List<Person> { new

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.