The java command starts a Java application . It does this by starting a Java runtime environment, loading a specified class, and calling that class’s main method. By default, the first argument without an option is the name of the class to be called.