Go to your console window (in Windows, go to the start menu and click “run”, then type “cmd.exe”; in Linux, open a terminal). Use the cd command ( cd dirname or .. to go up one directory) to navigate to the directory where HelloWorld. java was saved. Compile the program using the command javac HelloWorld .
Read moreHow do you write Hello, World in C?
Basic example: Creating and running “Hello World”
Read moreHow do I run a Java file?
How to run a java program
Read moreHow do I get Java in Notepad ++?
Here are the steps that will help you compile and run Java program in Notepad++.
Read moreCan Notepad ++ run programs?
Notepad++ is just a text editor. It can edit your code or any other text. But it can’t run your code on its own .
Read more