R
Raymond Schanks
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
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