Directory structure:
~\com\company\Main.class
To execute the class Main::main() function:
~\java com.company.Main
~\com\company\Main.class
To execute the class Main::main() function:
~\java com.company.Main
Find the Process IDnetstat -a -o -n to determine the pid of the process running on the used port (80, 3000, etc)