jar打包命令详解(Jar package command detailed).docVIP

  • 9
  • 0
  • 约9.65千字
  • 约 11页
  • 2017-08-31 发布于河南
  • 举报

jar打包命令详解(Jar package command detailed).doc

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

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档