码迷,mamicode.com
首页 > 编程语言 > 详细

How can I add files to a Jar file?

时间:2017-11-10 16:55:49      阅读:249      评论:0      收藏:0      [点我收藏+]

标签:.com   lan   es2017   htm   manifest   sys   question   baidu   分享   

https://stackoverflow.com/questions/12239764/how-can-i-add-files-to-a-jar-file

技术分享

 

技术分享

技术分享

 

 技术分享

技术分享

M.java

class M{
    public static void main(String args[]){
        System.out.println("Hello, world!");
    }   
}

 MANIFEST.MF

Manifest-Version: 1.0 
Created-By: 1.8.0_144 (Oracle Corporation)
Main-Class: M

  其实可以接着上一篇文章。。

加入了一个知识点,java  运行jar包。

https://jingyan.baidu.com/article/ff42efa904b4d7c19e220282.html

 

技术分享

这个命令,将MANIFEST.MF 这个文件添加到了f.jar 中!!

技术分享

 

How can I add files to a Jar file?

标签:.com   lan   es2017   htm   manifest   sys   question   baidu   分享   

原文地址:http://www.cnblogs.com/oxspirt/p/7815116.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!