Compile and Run java file from Notepad++

Just like to share old trick , used to compile and run java file
using notepad++.

To cook recipe: To compile and run java file using Notepadd++.

Ingredients:
Notepad++ Application
Installed JDK on system

Environment:
Windows

Procedure:

1> Make sure java path is properly set in windows environment variable.
To check go to command prompt and test java and javac commands working.

2>In notepad++, open any simple java file to test.

3>Press F5. Paste following in input box.
cmd /k cd $(CURRENT_DIRECTORY) && javac -cp . $(FILE_NAME)

3>Click save. Give Commad name say "Compile Java ".
Select shortcut combination. say Ctrl+Alt+2

4>Click Ok.Click Run to compile java file.

5>Now in Notepad++ again press F5. Paste following in input box.
cmd /k cd $(CURRENT_DIRECTORY) && java -cp . $(NAME_PART)

6>Click save. Give Command name say "Run Java File".

Select shortcut combination. say Ctrl+Alt+1

7>Click Ok. Click Run to run java file.

8>Now try with shortcut combinations. Shortcut will not work if it isn`t unique.