Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

command line output helloworld

By: ace on Sep 29th, 2010  |  syntax: None  |  size: 1.34 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jason@d600:~/eclipseworkspace$ jar - tv HelloWorld.jar
  2. One of options -{ctxu} must be specified.
  3. Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
  4. Options:
  5.     -c  create new archive
  6.     -t  list table of contents for archive
  7.     -x  extract named (or all) files from archive
  8.     -u  update existing archive
  9.     -v  generate verbose output on standard output
  10.     -f  specify archive file name
  11.     -m  include manifest information from specified manifest file
  12.     -e  specify application entry point for stand-alone application
  13.         bundled into an executable jar file
  14.     -0  store only; use no ZIP compression
  15.     -M  do not create a manifest file for the entries
  16.     -i  generate index information for the specified jar files
  17.     -C  change to the specified directory and include the following file
  18. If any file is a directory then it is processed recursively.
  19. The manifest file name, the archive file name and the entry point name are
  20. specified in the same order as the 'm', 'f' and 'e' flags.
  21.  
  22. Example 1: to archive two class files into an archive called classes.jar:
  23.        jar cvf classes.jar Foo.class Bar.class
  24. Example 2: use an existing manifest file 'mymanifest' and archive all the
  25.            files in the foo/ directory into 'classes.jar':
  26.        jar cvfm classes.jar mymanifest -C foo/ .