From: Raymond Schanks on 31 Mar 2010 04:14 Assume I want to create a jar archive with a command jar -cfe myjar.jar <MainApp> *.class for some classes. The entrypoint should be the main() method in class "MyTestclass123". What do I have to specify for <MainApp> in the command above? Do I have to write: jar -cfe myjar.jar main *.class or jar -cfe myjar.jar MyTestclass123 *.class What if the main() class is the only main() method in all classes. Can I omit it then and write simply jar -cf myjar.jar *.class ? Raymond
|
Pages: 1 Prev: String passing question Next: using java to create a key-value database |