java -jar SomeProgram.jar or javaw SomeProgram.jar. You can double click on jar files to run them once you map them to javaw (like when windows askes you what program it should use to run them).
jar -c JarName.jar files
Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ...
Options:
-c create new archive
-t list table of contents for archive
-x extract named (or all) files from archive
-u update existing archive
-v generate verbose output on standard output
-f specify archive file name
-m include manifest information from specified manifest file
-0 store only; use no ZIP compression
-M do not create a manifest file for the entries
-i generate index information for the specified jar files
-C change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name and the archive file name needs to be specified
in the same order the "m" and "f" flags are specified.
Manifest) in the base directory of your jar.
It should a line similar to Main-Class: package.subpackage.MainClass and have an extra blank line at the end. For more about the manifest file, see Understanding the Manifest.
| Topic JarFiles . { Edit | Attach | Ref-By | Printable | Diffs | r1.4 | > | r1.3 | > | r1.2 | More } |
|
Revision r1.4 - 04 Apr 2007 - 14:42 GMT - Katty May? Parents: Web Home > Environment Variables > Class Path |
Copyright © 1999-2004 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding jEdit Community Wiki? Send feedback. |