Reputation: 19569
I want to create one source folder: "src". in this folder I want to create two sub folder: one "java" for source and "test" for testing code.
when I want to create sub folder into the "src" folder, the eclipse just flat it in the project view.
Upvotes: 2
Views: 2376
Reputation: 19220
You should remove the src
folder from your classpath, and set the src/java
as your source folder, src/test
as your test source:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="src" path="src/test"/>
<classpathentry kind="output" path="bin"/>
<!-- the rest of your classpath comes here -->
</classpath>
Upvotes: 2