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

送分小仙女□ 提交于 2019-12-12 17:20:16

问题


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:


(source: 666kb.com)


回答1:


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"



来源:https://stackoverflow.com/questions/22116913/why-does-eclipse-not-allow-me-to-create-sub-folders-correctly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!