Classpath = sourcepath

I've added a source directory also into the classpath. Why it is not
displayed in the Project's structure any more?

Tom

5 comments

There's an option somewhere to hide output folders so that they don't clutter the project view - can't check where, I just now using Java Studio Creator ;-(

Note though, that Idea copies resources that match the pattern defined in the compiler settings from the source root to the build root automatically.
For example if there's a *.png file in your source folder it will automatically be copied to the build folder.
IMHO this is a more standard way to doing this.

Tom wrote:

I've added a source directory also into the classpath. Why it is not
displayed in the Project's structure any more?

Tom

0

I'm not talking about the output directory, just a (read-only) directory,
which contains resources and therefore should be in the class path.

Tom

0

Tom wrote:

I've added a source directory also into the classpath. Why it is not
displayed in the Project's structure any more?


You've just found the undoubtedly questionable feature that all folders that are
added to the classpath are only shown under the "Libraries" node.

Sascha

0

Sascha Weinreuter wrote:

Tom wrote:

>> I've added a source directory also into the classpath. Why it is not
>> displayed in the Project's structure any more?


You've just found the undoubtedly questionable feature that all folders that are
added to the classpath are only shown under the "Libraries" node.

Sascha

Yeah, this bugs me too...
N.

0

Yep me too, I've never been quite sure why it was changed.

0

Please sign in to leave a comment.