I've recently imported a Maven project into Eclipse, but none of the syntax highlighting is working. Additionally, when I try to write any code to any of the files (System.out.print("")
for example), a dialog box appears saying "This compilation unit is not on the build path of a Java project". This is likely the reason this is happening. How can I fix this?
I've tried the solutions suggested in the following threads to no avail:
"This compilation unit is not on the build path of a java project" -Eclipse
Eclipse "this compilation unit is not on the build path of a java project"
This compilation unit is not on the build path of a Java project