devoured elysium
devoured elysium

Reputation: 105187

Why does Eclipse try to always add my java files to the Proj/src directory instead of the one I'm trying to add it to?

Why does Eclipse try to always add my java files to the Proj/src directory instead of the one I'm trying to add it to? I mean, I get what it is trying to do, but I'd like to know how to override that behaviour.

Edit

Here is what I'm trying to do:

enter image description here

I have trunk/src/acdc/ast selected and I wish to add a java file to that folder. Yet when I try to add it, it adds it to TTT. (it added it first to TTT/src but since I've removed it from the build path it started adding it straight into TTT).

enter image description here

(and here is how I'm trying to add the files)

Thanks

Upvotes: 1

Views: 68

Answers (2)

Dunaril
Dunaril

Reputation: 2795

If you are using the Java perspective, your screenshot seems to indicate that your trunk/src folder is not a source folder for Eclipse.

Try right clicking on it and selecting Build Path -> Use as Source Folder

Upvotes: 1

adarshr
adarshr

Reputation: 62603

Right click on src, select Build Path > Remove from build path

Upvotes: 3

Related Questions