Follow the Below Steps:-
In this Post I’ll be Explaining You how to Run Java Programs in Notepad Using Command Prompt!
Firstly You’ll Have to Download the Java Development Kit ( JDK 7). From the Official Oracle Website.
As You see above it’ll Open up! Then Click on Accept first and then Download the File Windows x86 if your System is 32-bit! Or else if your System is 64-bit then Download the Last file!
Step 2 :-
Then Run the Downloaded file and Install it!
Step 3 :-
Then After all the Installation is complete Goto My Computer > C Drive > Program Files > Java > jdk1.7.0 > bin
If you open the above target folder you’ll reach a folder as shown below!
Now Just Select the Whole Address and Copy it! And keep it as it is!
Step 4 :-
Now Goto My Computer(Right-Click) > Properties.
Step 5 :-
Now Goto the Advanced Tab > Click on New Environments. As shown Below!
Step 6 :-
Now a new Window will open up! Now Click the New Option as Shown Below.
Step 7 :-
Now in Variable name : Type ” path”
And in Variable path : Paste what you have copied before in step 3 and type this at the end “;.;”
That’s All ! You have Successfully Completed the Steps! Now you can start Using Notepad and Do your Java Programs!