Java Commands

  • java command by itself can run compiled Java code
  • Tricky to get the command right with libraries
  • java -jar lets you run a program from a JAR file
  • The JAR file has some metadata that fills in for some command line info
  • mvn clean package and java -jar ... will be our bread and butter

9 / 19