I have a Java program that I have been using for several months now that generates excel surveys. I an using Maven as my Java build in VS Code. For some reason, starting today, as soon as I opened the project in VS Code, I got this error:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.String. Fix the build path then try building this project
In addition to this error, I have over 100 other errors like "java.lang.Object". cannot be resolved. What could have caused this problem given that I have not touched this program or the class path or pom.xml in the last few days, and how can the issue be resolved?
I have done a lot of research online, and most people say to change the build path on my project by doing this: "Right click on the project name --> Open Properties --> Java Build Path --> Add Jars"
Essentially this article: the project was not built since its build path is incomplete vscode
The problem is, I am on Mac, and there is no way to "Open Properties", or if there is I cannot find it. Can someone provide similar steps to that for Mac?
Because I was curious I opened the folder for the Java project on another computer (also mac) and it worked perfectly fine which seems so strange.
I also tweaked my pom.xml file and when I try to update it I get this error:
Full component analysis cannot be performed until the Pom is valid.`
I tried to include my pom.xml file in this post, but it was flagged as spam.
I don't think there is anything that should make this pom.xml file invalid since, like I said, I opened this project on another computer and it worked completely fine.