I'm starting to have more source files than is easily managed and was wondering if it's possible to put the .java files into sub-folders of the package folder they are already in?

I'm using eclipse if that makes a difference.

Recommended Answers

All 3 Replies

The folder/subfolder structure MUST match the package structure - so as long as you keep these two in step (ie create a sub-package and a sub-folder at the same time for the same classes) it's no problem. In Eclise you can right cluck a package to add a sub-package and then move the classes to match.

This post was just copied and pasted here by a lame spammer so I'm closing it but leaving the replies intact, since the answers may help someone else.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.