How to Run a JAR File With Command-Line Arguments

Pass arguments to an executable JAR with java -jar, the difference between program args and JVM options, and how to set system properties and the classpath.

The Argument Order That Matters

Passing Program Arguments

JVM Options vs. System Properties

Running a Specific Main Class (No -jar)

Common Errors

Summary