Can’t execute jar- file: “no main manifest attribute”

First, it’s kind of weird, to see you run java -jar “app” and not java -jar app.jar Second, to make a jar executable… you need to jar a file called META-INF/MANIFEST.MF the file itself should have (at least) this one liner: Where com.mypackage.MyClass is the class holding the public static void main(String[] args) entry point. Note that there are several ways to … Read more