问题
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