I have an existing src/ java directory with all the structure.
I created a new java project in Eclipse, and the src directory is read well into the project naturally.
However, there are a few issues:
- (a) I can’t run anything (the Java interpreter can’t find the class, even though it is part of the source),
- (b) errors do not mark the file as having an error, they are only marked at the relevant line in the source code (never had that issue before)
- (c) there is a large exclamation mark next to the title of the java project in the explorer on the left handside.
I am probably misconfiguring something, but I am not sure what. Is there a way to at least see what’s the cause of the large exclamation mark? I am pretty sure it will give some info.
Sounds like your source directory is not part of the eclipse project. right click on the project (in the eclipse explorer), get the properties open and click on java build path. Check that your source directory is listed in the source tab.