java--manifest.txt写入jar包
时间:2021-09-01 21:27:34
收藏:0
阅读:9
照着书上敲了一遍
jar -cvmf mainfest.txt hello.jar com
却提示hello.jar没有主清单属性。打开jar包查看MANIFEST.MF。写在manifest.txt里面的Main-class信息没有写入进去。
原来是,注意:
- Main-class:后面接空格 Main-class: com.point.Hello
- Main-calss这行结束后一定要再换行。保存。
原文:https://www.cnblogs.com/staynight/p/15208388.html
评论(0)