Could not find or load main class, In Eclipse everything works fine

So I have a maven project that consists from several modules. It was initially created in Eclipse. Everything works fine there.
I tried to import the project in Intellij IDEA and it was imported with no problems.
When I run the project as an Application, I choose the module and the static Class. The configuration says it found the class and everything is okay.
If hit the run button though, this error appears

Error: Could not find or load main class
What could cause the problem ? 

0

Please sign in to leave a comment.