java java_site1.jar 20 50
⇒ 20 + 50 = 70
java java_site1.jar 10 30
⇒ 10 + 30 = 40
cd /web/site1 vim Main.java
# Main.java public class Main { public static void main(String[] args) { int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); System.out.println("%d + %d = %d".formatted(a, b, a + b)); } }
javac Main.java
java Main 40 60
vim Manifest.txt
// Manifest.txt Main-class: Main
jar -cvmf Manifest.txt java_site1.jar Main.class
java -jar java_site1.jar 30 50
80