Execution

Run Jar

Run Jar java -jar <path to jar file>

No standard location.

Relative path to {CD}.

Directories not to be preceded by a ‘/’

Working Directory is {CD}.

Classpath

Classpath -cp “<Item[;... ]>”
  • jars (does not also include the directory).

Windows

./*        All jars in {CD}

Linux

-cp <Item:>

Working directory

Get

System.getProperty("user.dir").

Updated: 2026 Aug 19