Running on the Command Line

  • For real apps, you often start them from the command line (or using other OS tools)
  • You don't want your code to be dependent on the 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

15 / 23