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 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

Also Read:  12 Smart Tips To Reduce Blog Page Load Time

Creating 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.Thats it, you have succesfully created the tools.
To run the applet programs, follow the same procedure buet in Command field change javac.exe to appletviewer.exe and save.


Please enter your comment!
Please enter your name here