

In the Name: text box, key in "Java Compile and Save" as shown in the figure below.Ĭlick OK and then click on the Run! button. $(NPP_DIRECTORY)\JavaCompileRun.bat "$(CURRENT_DIRECTORY)" "$(FILE_NAME)" "$(NAME_PART)"Īfter keying in the above command, the dialog box should look something like this.Ĭlick on the Save. Next, copy the file JavaCompileRun.bat to your Notepad++ program folder, usually at C:\Program Files\Notepad++. Put in the following codes and save the file. Then, key in "JavaCompileRun.bat" as the new file name. You can do this by right-clicking on your Windows' Desktop and then click New and Text Document. The following steps describe how you can extend the capabilities of Notepad++ to include compiling and executing Java programs from Notepad++ itself.įirst, create a file called JavaCompileRun.bat. Unlike Eclipse and Netbeans, it is light-weight and it can be launched from Windows Explorer easily by right-clicking on the file you wish to edit. It supports syntax highlighting of many programming languages besides Java.


Follow the below screen shot.īefore we go in detail we have to know why we need to build or the compile the C# program using Notepad and Command Prompt.
