Is there a way to create 2 source folder in a single java project in eclipse, that will be isolated from each other, meaning it will not be possible in source folder 1 to use code from source folder 2?
Thanks
Is there a way to create 2 source folder in a single java project in eclipse, that will be isolated from each other, meaning it will not be possible in source folder 1 to use code from source folder 2?
Thanks
Create two separate projects is the obvious answer...
you can always have each folder build to a different folder but... classpath is defined per projects so you still end up with them in the same classpath and thus available to each-other...
really here there is no issues... separate projects will effectively create the effect that you want.
Out of curiosity here, why the requirement to be in the same project ? It just sounds needlessly complicated. Don't try to go against the tools you are using, as much as they can be a blessing when use right if you bend them in unwieldy ways they will make you suffer immeasurable pains.
---- Edit ----
If I understand correctly you want the convenience of having a single item in the repository to contain both the problem and the solution but want them as separate entities. You could acheive this by having two distinct project as sub-folder of a single root. Enter the root in your archive. Then to get the projects you have two possible options
or
Not perfect but it could do the trick.