Running a program with the java command

The java command is used to launch a JVM instance and start the application. There are basically two situations:

  • Run a project consisting of separate class files
  • Run a project that is stored inside a runnable JAR file

We will also take a look at some important parameters of the java command.