- 9
- 0
- 约9.65千字
- 约 11页
- 2017-08-31 发布于河南
- 举报
jar打包命令详解(Jar package command detailed)
jar打包命令详解(Jar package command detailed)
Jar packaging instructions detailed Post By:2008-6-2 11:57:00
I often see people on the Internet asking how to compile Java programs into.Exe files. There are usually only two answers, one is to make an executable JAR package, and then double-click it to run like an.Chm document, while the other answer is to compile using JET. But JET is for money, and it is said that JET is not able to compile all Java programs into executable files, and the performance should be discounted. So, the best way to use JAR executable packages is to make sure that Javas cross platform features are maintained. Take a look at what the JAR file package is:
1. JAR packages
The JAR file is Java Archive File, Gu thinking, it is the application and Java are closely related, is a document format Java. The JAR file is very similar to the ZIP file. To be exact, it is the ZIP file, so it is called a file package. The only difference between the JAR file and the ZIP file is that the contents of the JAR file contain a META-INF/MANIFEST.MF file that was created automatically when the JAR file was generated. For example, if we have some files with the following directory structure:
= =
`-- test
`-- Test.class
Compress it into the ZIP file test.zip, and then the internal directory structure of the ZIP file is:
Test.zp
`-- test
`-- Test.class
If we use JDKs jar command to type it into the JAR file package test.jar, then the internal directory structure of this JAR file is:
Test.jar
|-- META-INF
| `-- MANIFEST.MF
`-- test
`--Test.class
2. create executable JAR packages
The most typical use of JAR packages is to make an executable JAR package to publish your program.
The Java program is made up of several.Class files. These.Class files must be based on their different classification and directory storage; need all parameters specified for the -cp CLASSPATH environment variable or Java command root package used to run before running down to the console; to use the Ja
您可能关注的文档
- 20种常见食品神奇功效(20 kinds of common food magic effect).doc
- 20篇作文(20 compositions).doc
- 2014最新阳泉交通公示(2014, the latest Yangquan traffic publicity).doc
- 210个字谜灯谜(210 puzzle lantern riddles).doc
- 21世纪想成功必看的——网商经(Twenty-first Century - net business must want to succeed).doc
- 21招 让脂肪燃烧大提速(21 strokes so that fat burning speed).doc
- 21yod 2011-8-24 74632 药店名称订单总数发货数甘肃德生堂医药(21yod 2011-8-24 74632 the total number of orders shipped Gansu drugstore name deshengtang medicine).doc
- 2014香港标杆房企住宅、豪宅、别墅及商业地产考察(9月26-28日)(2014 Hongkong benchmark housing prices, residential, luxury, villas and commercial real estate inspection (September 26-28)).doc
- 220th水冷方形分离器循环流化床锅炉的设计及运行(Design and operation of 220th water-cooled square separator circulating fluidized bed boiler).doc
- 23万余条意见里的百企业培训姓视角 个税改革三大焦点(More than 23 views of 100 enterprises training, surname perspective, tax reform focus of three).doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
原创力文档

文档评论(0)