To pass arguments to the jar:
java -jar myjar.jar one two
You can access them in the main() method of “Main-Class” (mentioned in the manifest.mf
file of a JAR).
String one = args[0];
String two = args[1];
To pass arguments to the jar:
java -jar myjar.jar one two
You can access them in the main() method of “Main-Class” (mentioned in the manifest.mf
file of a JAR).
String one = args[0];
String two = args[1];