linux 执行jar包的时候报no main manifest attribute;

# java -jar home/helloworld.jar 

no main manifest attribute, in home/helloworld.jar

在idea中打包没有问题,正常情况下,需要在jar的mainfest.mf中指定main类,报错之后,就需要重新指定他的main class


java -cp home/helloworld.jar com.zhou.App

猜你喜欢

转载自blog.csdn.net/waterflying2015/article/details/80808790
今日推荐