Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Eclipse not allow me to create sub folders correctly?

When I'm trying to create a folder structure in my Resources folder, Eclipse messes it up.

For example I have an image stored in /Resources/Graphics/SomeFolder/example.gif

In the Package/Project Explorer I have then an empty package Graphics and a different package called Graphics.SomeFolder. Now I can't load the image when I try to access is with the normal path.

For clarification I created this folder structure \Resources\graphics\images\subfolder\image.gif and this is what Eclipse makes of it:

Screenshot
(source: 666kb.com)

like image 205
user3368646 Avatar asked Oct 20 '22 13:10

user3368646


1 Answers

This is happening because your Resources folder is created as a "source folder". So it is displaying subfolders as a package structure. Define your Resources folder as a normal folder using "New -> Folder"

like image 160
Sanjeev Avatar answered Oct 23 '22 03:10

Sanjeev