program for close the application in java from command line code example Example: java close application System.exit(0);