Learn How to Run a Java Program using Notepad and Command Prompt

Опубликовано: 19 Март 2026
на канале: My How To Code School
2,296
21

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.