I am trying to create an executable .jar file for an application, but when I run "java -jar myapp.jar" I get the error:
Error: Could not find or load main class com.vaadin.app.MainView
I have added the mainClass argument in my pom.xml, and the Manifest.mf shows this:
Manifest-Version: 1.0
Build-Jdk-Spec: 1.8
Created-By: Maven Archiver 3.4.0
Main-Class: com.vaadin.app.MainView
Is there a reason why it can't find the Main()
meathod in my class MainView
?