How to run the Java project created in IntelliJ ide from the command line?
Find the directory where your program is located, then press and hold shift in the blank space under the directory, right-click here to open the command window, and then execute: javac file name. After Java is compiled, execute the java file name. The file name should be the file of the entry program of the Java project.
Use Maven to handle this requirement