


In my case, the package name was accompanied by the main class. Inside "Set Properties" make sure exec.args=classpath %classpath "package_name".On the right side in Actions select "Run Project" and you will see properties below.Right-click on the project, and go to the properties.On my PC my Jar file snapshot would give me this error while on my laptop it would work fine, I tried all the tricks shown above and on other forums like deleting cache, selecting main project file, etc, but somehow I was sure the reason it cannot find the main class when I would execute the JAR file was may be due to classpath issue in maven configuration, and I was right and I fixed it using following steps:
