"Could not find the main class: bla.bla.yada", although specified correctly in the MANIFEST.MF

Posted by Bernhard V on Stack Overflow See other posts from Stack Overflow or by Bernhard V
Published on 2010-05-07T10:40:23Z Indexed on 2010/05/07 10:48 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

Hi,

I'm trying to run a .jar file with the command "java -jar Filename.jar", but I am always getting an error saying "Could not find the main class: bla.bla.yada". I build the whole application with Maven and specified a Main-Class in the MANIFEST.MF. The path in the file is correct and the class also exists at the right location in the jar.

The ending .class is omitted in the MANIFEST.MF. I hope this is correct. Do you have any other hints?

© Stack Overflow or respective owner

Related posts about java

Related posts about jar