We can compile and run Java Programs ( with user defined Packages ) from command prompt ( CMD ) in Windows 11 Computer and this video tutorials teaches you to do it with example for beginners.
To Compile the Program we use the command javac
example : javac -d . file_name.java
To run the java program we have to provide the name of the class which contains the static void main method to the java interpreter.
example java Start
where start is the name of the lass which contains the static void main method.