How to run a JAR file

前端 未结 11 2149
长发绾君心
长发绾君心 2020-11-22 04:18

I created a JAR file like this:

jar cf Predit.jar *.*

I ran this JAR file by double clicking on it (it didn\'t work). So I ran it from the

11条回答
  •  感情败类
    2020-11-22 04:42

    Before run the jar check Main-Class: classname is available or not in MANIFEST.MF file. MANIFEST.MF is present in jar.

    java -jar filename.jar
    

提交回复
热议问题