Jeff Spell
Jeff Spell

Reputation: 13

Managing Source and Class Files in Java

I'm relatively new to Java and programming in general, so my question may seem obvious, but I am trying to learn.

To make it short, there are .class files in my source folder.

I work in Eclipse and I'm not sure how they got there. I've always had the output directory in a bin folder rather than the src folder. Based on Windows, those .class files haven't been changed in over a month.

Would anyone suggest removing them to make the work space a little bit neater?

Thanks.

Upvotes: 1

Views: 146

Answers (1)

Dawood ibn Kareem
Dawood ibn Kareem

Reputation: 79838

Yes, you can always remove the .class files - Eclipse will just remake them at the right time.

To change where they are stored, right-mouse on your project in the Package Explorer and select Build Path > Configure Build Path. Click on the "Source" tab. The output folder is listed at the bottom of the tab.

Upvotes: 2

Related Questions