How To Compile And Run Java Programs Using Editplus

What is EditPlus?

EditPlus is a tool which can be used as a text editor, HTML editor, and Programmer’s editor. It acts as a good replacement for Notepad and provides powerful features such asEditplus

  • Syntax highlighting for almost all languages.
  • Seamless Web browser for previewing HTML pages, and FTP commands for uploading local files to FTP server.
  • It can extend for other languages by installing syntax files.

EditPlus is free to download. The latest version of EditPlus Download.

EditPlus to run java programs

We write Java programs in Notepad and compile, run from command prompt. This will take a lot of time. So we can use EditPlus instead of use Notepad and command prompt, which saves time. Just follow the below process to create compile and run tools in EditPlus.

Creating Compile tool

  1. First, open EditPlus.
  2. Now open Tools from the top menu.[sociallocker]
  3. In the Tools menu, click on configure user tools, then a window pops up.
  4. Now, in that window click on Add tool which is present at the right side.
  5. Select “Program” from the Add tools menu.
  6. In the next window, enter Java compiler (You can give any name) in Menu field.
  7. In the Command field, you have entered the path of your Java. To do this click on small button present beside command field. Then select C:\Program Files\Java\jdk1.7.0_05\bin\javac.exe (It depends on JDK version which you are using in your system)
  8. In Argument field enter $(FileName).
  9. In Intial directory field enter $(FileDir).
  10. Now check the Capture output and then click on Apply>>Ok.
Compile Tool Window

Creating a Run tool

  1. Follow the same steps as above, click on Add Tool>>Program.
  2. In the next window, enter Run(You can give any name) in Menu field.
  3. In the Command field, you have entered the path of your Java. To do this click on small button present beside command field. Then select C:\Program Files\Java\jdk1.7.0_05\bin\java.exe (It depends on JDK version which you are using on your system)
  4. In Argument field enter $(FileNameNoExt).
  5. In Intial directory field enter $(FileDir).
  6. Now check the Capture output and then click on Apply>>Ok.
Run Tool Window

Now to test whether the tools are working or not, click on File>>New>>Java. Now type the program and save it. Now press ctrl+1 to compile and ctrl+2 to run the program. That’s it, you have successfully created the tools.
To run the applet programs, follow the same procedure but in Command field change javac.exe to appletviewer.exe and save.

Leave a Comment