当前位置:网站首页>移动安全工具-jar
移动安全工具-jar
2022-06-24 20:06:00 【深度安全实验室】
1 需求
- 创建jar文件
- 解压jar文件
- -x 从档案中提取指定的 (或所有) 文件
- 只能解压缩到当前目录,详见后面参考资料
- 插件jar文件内容
- 查看jar文件中rt.jar
- 压缩两个文件到同一个jar文件中
2 语法
C:\Users\Administrator>jar
用法: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
选项:
-c 创建新档案
-t 列出档案目录
-x 从档案中提取指定的 (或所有) 文件
-u 更新现有档案
-v 在标准输出中生成详细输出
-f 指定档案文件名
-m 包含指定清单文件中的清单信息
-n 创建新档案后执行 Pack200 规范化
-e 为捆绑到可执行 jar 文件的独立应用程序
指定应用程序入口点
-0 仅存储; 不使用任何 ZIP 压缩
-P 保留文件名中的前导 '/' (绝对路径) 和 ".." (父目录) 组件
-M 不创建条目的清单文件
-i 为指定的 jar 文件生成索引信息
-C 更改为指定的目录并包含以下文件
如果任何文件为目录, 则对其进行递归处理。
清单文件名, 档案文件名和入口点名称的指定顺序
与 'm', 'f' 和 'e' 标记的指定顺序相同。
示例 1: 将两个类文件归档到一个名为 classes.jar 的档案中:
jar cvf classes.jar Foo.class Bar.class
示例 2: 使用现有的清单文件 'mymanifest' 并
将 foo/ 目录中的所有文件归档到 'classes.jar' 中:
jar cvfm classes.jar mymanifest -C foo/ .
3 示例
4 参考资料
Java中用Jar命令解压缩文件的方法_llqyhl的博客-CSDN博客
JDK 命令之 jar -- 压缩/解压缩工具_liaowenxiong的博客-CSDN博客_jar包解压和压缩
边栏推荐
- The drawableleft of the custom textview in kotlin is displayed in the center together with the text
- Xcode preview displays a bug in the content of the list view and its solution
- D omit parameter name
- Android SQLite database
- Alternative to log4j
- UE4 WebBrowser chart cannot display problems
- 腾讯云国际云服务器网络访问丢包问题解决办法
- Several ways for wechat applet to jump to the page are worth collecting
- Some examples of MgO operating database in go
- Hot fix sophix multi-channel patch solution
猜你喜欢
Working principle analysis of kubernetes architecture core components
Custom animation (simulated win10 loading animation) - Optimization
Use coordinatorlayout+appbarlayout+collapsingtoolbarlayout to create a collapsed status bar
How to use promise Race() and promise any() ?
热力图展示相关矩阵
@mysql
无需显示屏的VNC Viewer远程连接树莓派
Custom animation (simulated win10 loading animation)
How can I persuade leaders to use DDD to construct the liver project?
Creative SVG ring clock JS effect
随机推荐
ServerSocket and socket connection
Easy to wear - drop down radio
How to delete the entire row with duplicate items in a column of WPS table
【Redis实现秒杀业务②】超卖问题的解决方案
C WinForm maximizes occlusion of the taskbar and full screen display
A plug-in framework for implementing registration free and login verification with hook technology
@mysql
Registration method of native method in JNI
What is the difference between one way and two way ANOVA analysis, and how to use SPSS or prism for statistical analysis
断言(assert)的用法
Single blind box removal, social blind box and friend blind box program source code
How to use promise Race() and promise any() ?
More pictures | explain the Nacos parameters in detail!
Interesting checkbox counters
Svg line animation background JS effect
Use of JMeter
2019 summary and 2020 outlook
Difficult and miscellaneous problems: A Study on the phenomenon of text fuzziness caused by transform
[interview question] the difference between instancof and getclass()
Tiktok wallpaper applet v1.0.2 function, new arrival function