Running on the Command Line

  • For real apps, you often start them from the command line (or using deeper OS tools)
  • You don't want your code to be dependent IDE
  • A Java program should only need Java installed to run
  • The command line can be more easily automated (and therefore be made more reliable)
  • You can use the mvn command to build your app
  • And the java command to launch it

5 / 19