Are you using Java 11 in STS?
I suspect you have a recent version such as 16, and that won’t be compatible with Mendix. It will cause the sort of errors you are seeing.
Install and use Java 11 and it should work.
Good luck!
Hi Rohit,
might be caused by conflicting java libraries within your project or if the jdk versions don’t match up
Have a look at