![]() I spend lot of time to find the fix.ġ.Try restart the Eclipse (if you are using Eclipse to built JAR file) Just follow the below steps and the error could be for anything, but the below steps makes the process smoother. I faced the same issue and it’s fixed now:) Note that this is only the plugin definition, not the full pom.xml: ![]() ![]() jar įor Maven, something like the following snippet should do the trick. Note that there are several ways to get this done either with the CLI, Maven or Ant:įor CLI, the following command will do: (tks cmvf META-INF/MANIFEST.MF. Where 圜lass is the class holding the public static void main(String args) entry point. The file itself should have (at least) this one liner: Main-Class: 圜lass Second, to make a jar executable… you need to jar a file called META-INF/MANIFEST.MF First, it’s kind of weird, to see you run java -jar "app" and not java -jar app.jar
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |