how to run the java project from cmd code example
Example 1: how to run java files
javac filename.java //(This will compile the program)
java filename //(This will run the file)
Example 2: java run project from command line
// Assuming that you have an executable jar
java -jar myJavaProject.jar
// Assuming that you have packaged jar
java -jar target/myJavaProject.jar