When executing jar, pass in the path and name of each argument file with the leading character. When jar encounters an argument beginning with the character , it expands the contents of that file into the argument list. For example, you can use a single argument file named classes. If you already have separate subdirectories for images, audio files and classes, you can combine them into a single jar file:.
To add an index file to the jar file for speeding up class loading, use the -i option. Skip to Content. It will generate package location information for the specified main jar file and all the jar files it depends on, which need to be specified in the Class-Path attribute of the main jar file's manifest. The application class loader will use the information stored in this file for efficient class loading. Refer to the JarIndex specification for details about how location information is stored in the index file.
A standard way to copy directories is to first compress files in dir1 to standard out, then extract from standard in to dir2 omitting f from both jar commands :. Examples of using the jar tool to operate on jar files and jar file manifests are provided below and in the Jar trail of the Java Tutorial.
When executing jar , pass in the path and name of each argument file with the leading character. When jar encounters an argument beginning with the character , it expands the contents of that file into the argument list. The example below, classes. You can then execute the jar command on Classes.
To add an index file to the jar file for speeding up class loading, use the i option. Skip to Content. For example, jar uf foo. For example, jar -i foo. LIST file in foo. The following command, jar uf foo. For example, -J-Xms48m sets the startup memory to 48 megabytes. It is a common convention for -J to pass options to the underlying virtual machine.
0コメント