https://stackoverflow.com/questions/5258159/how-to-make-an-executable-jar-file

文件的路径如下:

package com.tellidea;

public class Temp{
public static void main(String args[]){
System.out.println(args[0]);
}
}

 

直接vim myjar.jar 打开jar包,查看里面的内容:

MANIFEST.MF文件的内容:

 

---------------------------------------------------------------

Here it is in one line:

jar cvfe myjar.jar package.MainClass *.class

where MainClass is the class with your main method, and package is MainClass's package.

Note you have to compile your .java files to .class files before doing this.

最新文章

  1. ejs-mate
  2. PHP设定错误和异常处理三函数
  3. Largest BST Subtree
  4. Optimizing Performance: Data Binding(zz)
  5. AutoMapper使用
  6. PhpStorm+PhpStudy+xdebug 配置图解
  7. Android ListView点击失效
  8. redis例子
  9. Hibernate对象持久化框架
  10. js匀速运动停止条件
  11. spring boot 遇到 supported setting property http://xml.org/sax/properties/lexical-handler
  12. eclipse快捷键及设置
  13. [模拟赛] T2 不等数列
  14. 判断字符串a和b是否互为旋转词
  15. Spring Data Redis 让 NoSQL 快如闪电 (1)
  16. Codeforces Round #443 Div. 1
  17. Acegi框架
  18. 使用boost线程定时器作为后台线程来切换主循环程序状态方法2
  19. 前端 --- 7 Bootstrop框架
  20. 二、工作中常用的SQL优化

热门文章

  1. 五十三 网络编程 TCP/IP简介
  2. python 正则表达式匹配中文(转)
  3. 洛谷P1880 [NOI1995] 石子合并 [DP,前缀和]
  4. Funny Car Racing CSU - 1333 (spfa)
  5. 有的系统区apk需要对其系统签名,才能正常使用。
  6. 【BZOJ 4567】【SCOI 2016】背单词
  7. 【Kruskal+dfs】BZOJ1016- [JSOI2008]最小生成树计数
  8. 使用redis时出现java.util.ArrayList cannot be cast to java.lang.Long
  9. ES6 Set结构和Map结构(上)
  10. centos svnversion安装部署