Oct 10, 2018

[HDGEM] How to fix: java: “no main manifest attribute”

The -jar option only works if the JAR file is an executable JAR file, which means it must have a manifest file with a Main-Class attribute in it. See Packaging Programs in JAR Files to learn how to create an executable JAR.

If it's not an executable JAR, then you'll need to run the program with something like:

java -cp app.jar com.somepackage.SomeClass

--
Posted By Blogger to HDGEM at 3/08/2017 08:46:00 AM