Eclipse | Packge turns into a directory, breaks my whole project

 ̄綄美尐妖づ 提交于 2019-12-07 16:02:30

问题


So the issue i am having is extremely weird. When i have a preexisting project set up (and am moving it from computer A to computer B). I make a new project and import it the normal way. It is very, very package based and there are around 30-40 packages. Two packages are made into directories instead of packages.

For example, instead of org.project1.tools.stuff it is org/project1/tools/stuff.

I have checked the code, at the top it goes package org.project1.tools.stuff and then the imports and so on.

Since it is in a directory listing and NOT in my actual packages, it is severely breaking my entire project.

Any help would be appreciated!


回答1:


If you right click on your project, select properties->Java Build Path. On the subsequent screen you can specify which folders are source folders.




回答2:


Just deleted the project and added it again without touching the files. O.o



来源:https://stackoverflow.com/questions/12761779/eclipse-packge-turns-into-a-directory-breaks-my-whole-project

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