how to run a .java file from another class code example Example: java run class file java -cp ./ {NAME}