Eclipse classpath entries only used for tests
You could separate all your tests into another project and add the main project as a dependency (Project->Properties->Java Build Path->Projects->Add…) Update: To avoid changing the original project structure, your test projects can use linked locations. Create the test project as normal, you now need to create a linked resource to bring in the src/test/java folder. … Read more