Why has it failed to load main-class manifest attribute from a JAR file?

后端 未结 11 1458
不思量自难忘°
不思量自难忘° 2020-11-28 04:58

I have created a JAR file in this way jar cf jar-file input-files. Now, I\'m trying to run it. Running it does not work (jre command is not found):



        
11条回答
  •  青春惊慌失措
    2020-11-28 05:13

    I got this error, and it was because I had the arguments in the wrong order:

    CORRECT

    java maui.main.Examples tagging -jar maui-1.0.jar 
    

    WRONG

    java -jar maui-1.0.jar maui.main.Examples tagging 
    

提交回复
热议问题