When exporting eclipse projects, then importing them at another location, eclipse shows a red exclamation mark. There are no errors in the code itself, as it compiled and ran with no issues before exporting.
When I try to compile it, it says there are errors in the project, and I select proceed.
Then I get the error:”no main class def found”, as none of the files were re-compiled, and thus no .class files exist in /bin directory.
I am cloning from github.
How do I resolve this?
SOLVED:
After going into problem view, I found the issue was unrelated to my current project, althought Eclipse got confused and showed it thus. It was a buildpath issue with a missing external jar I had linked in another project.
Thanks Mliebelt
With so few informations, just do Project > Clean… (with “build automatically” checked).
For a better answer, you should tell us what the errors are.