How to make an executable jar file?
2024-10-21 15:56:08
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.
最新文章
- ejs-mate
- PHP设定错误和异常处理三函数
- Largest BST Subtree
- Optimizing Performance: Data Binding(zz)
- AutoMapper使用
- PhpStorm+PhpStudy+xdebug 配置图解
- Android ListView点击失效
- redis例子
- Hibernate对象持久化框架
- js匀速运动停止条件
- spring boot 遇到 supported setting property http://xml.org/sax/properties/lexical-handler
- eclipse快捷键及设置
- [模拟赛] T2 不等数列
- 判断字符串a和b是否互为旋转词
- Spring Data Redis 让 NoSQL 快如闪电 (1)
- Codeforces Round #443 Div. 1
- Acegi框架
- 使用boost线程定时器作为后台线程来切换主循环程序状态方法2
- 前端 --- 7 Bootstrop框架
- 二、工作中常用的SQL优化
热门文章
- 五十三 网络编程 TCP/IP简介
- python 正则表达式匹配中文(转)
- 洛谷P1880 [NOI1995] 石子合并 [DP,前缀和]
- Funny Car Racing CSU - 1333 (spfa)
- 有的系统区apk需要对其系统签名,才能正常使用。
- 【BZOJ 4567】【SCOI 2016】背单词
- 【Kruskal+dfs】BZOJ1016- [JSOI2008]最小生成树计数
- 使用redis时出现java.util.ArrayList cannot be cast to java.lang.Long
- ES6 Set结构和Map结构(上)
- centos svnversion安装部署