当前位置:网站首页>Mobile security tool jar

Mobile security tool jar

2022-06-25 00:49:00 Deep safety laboratory

1 demand

  • establish jar file
  • decompression jar file
    • -x   Extract the specified... From the file ( Or all ) file
    • It can only be extracted to the current directory , See the following references for details
  • plug-in unit jar The contents of the document
  • see jar In file rt.jar
  • Compress two files into the same jar In file

2 grammar

C:\Users\Administrator>jar
 usage : jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
 Options :
    -c   Create a new profile 
    -t   Make a list of files 
    -x   Extract the specified... From the file  ( Or all )  file 
    -u   Update existing files 
    -v   Generate detailed output in standard output 
    -f   Specify the file name 
    -m   Contains the manifest information in the specified manifest file 
    -n   Create a new file and execute  Pack200  Normalization 
    -e   For bundling to executable  jar  File independent application 
         Specify the application entry point 
    -0   Store only ;  Do not use any  ZIP  Compress 
    -P   Keep leading in filename  '/' ( Absolute path )  and  ".." ( Parent directory )  Components 
    -M   Don't create a manifest file for items 
    -i   For the specified  jar  File generation index information 
    -C   Change to the specified directory and include the following files 
 If any file is a directory ,  Then recursively .
 Listing filename ,  The specified order of file name and entry point name 
 And  'm', 'f'  and  'e'  Tags are specified in the same order .

 Example  1:  File two class files into a file called  classes.jar  In the archives of :
       jar cvf classes.jar Foo.class Bar.class
 Example  2:  Use the existing manifest file  'mymanifest'  and 
            take  foo/  All files in the directory are archived to  'classes.jar'  in :
       jar cvfm classes.jar mymanifest -C foo/ .

3 Example


4 Reference material

Java of use Jar Command to extract the file _llqyhl The blog of -CSDN Blog

JDK Order jar -- Compress / Decompress tool _liaowenxiong The blog of -CSDN Blog _jar Package decompression and compression

Java Executable jar Self decompression jar From the specified file to the specified directory

 Insert picture description here

原网站

版权声明
本文为[Deep safety laboratory]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206242005347077.html