run a .class file from command line java code example
Example 1: run java class file
// Don't usee .class at the end of class file name
java ClassFileName //--in file path-- if file doesn't have package
java PackageName.ClassFileName //--in package path-- if file have package
Example 2: java run class file
java -cp ./ {NAME}