Archive for the ‘editplus’ Category

how to deal with java programs in EditPlus

This post may help you to deal with Java Programs in the EditPlus – a famous editor for many different type of files (for example, .java, .css, .html, .sql, .txt etc).

 One more similar editor is TextPad, which can directly deal with Java applications as its taking the Java Compiler by default from the installed location in the machine it is running.  Thats one advantage with that.

What exactly do i mean to say “dealing with Java applications”? Does it mean typing the source code? Absolutely NOT! That does not require any special settings and you can start typing as you would with any other file. I mean to say, “Compiling” and “Running” of Java applications.

In EditPlus, we cannot direclty deal with Java Applications and they need some sort of settings to do that. Lets see them one by one.

1. Options to set for Compilation (“javac”):

Go to “Tools” Menu -> and click on “Configure User Tools…” option.

 Click on the individual images to see the full-size screenshots if it does not display the image in full. 

Every image has the required description and explanation for the step.

Image1:  Clicking on “Configure User Tools…” Option in the “Tools” Menu

1_Tools Menu-ConfigureUserTools

It will open a new dialog box where in you can enter your details to configure for the tools.

Image2: The Initial Groups and Tools Window dialog box

2_Empty Groups and Tools Items Window

Image3: Clicking on “Add Tool” button in the Dialog box

3_click on AddTool

Image4: The Initial window on “Add Program”

4_InitialWindowOnAddProgram

Image5: Configuring “javac” for compilation – step 1

5_CompileJavaProgram-1

Image6: Configuring “javac” for compilation – step 2

5_CompileJavaProgram-2

Image7: Verifying the “javac” tool added in the “Tools” Menu

6_VerifyCompileJavaProgramInToolsMenu

2. Options to set for Execution (“java”) :

Image8: Configuring “java” for execution

7_Configure java

Image9: Verifying the “java” tool added in the “Tools” Menu

8_VerifyRunJavaProgramInToolsMenu

Image10: Compiling a Java Program

9_Compile Java Program

Image11: Running (Executing) a Java Program by giving the command line arguments

10_Run Java Program with cmd line args

Image12: Output of running the Java Program with command line arguments

11_Run Java Program with cmd line args-output

Image13: Output of running the Java Program without any command line arguments

12_Run Java Program with no cmd line args-output

Hope the series of screenshots helped you configure and run a Java Program in EditPlus.

I have blogged this steps as i have seen this in one of the threads in JavaRanch. But still, i would suggest you to just proceed with Notepad and the normal Command Window if you are in the beginning stage because the ordinary plain text editor like Notepad will help you improve your language syntax by not having any support for syntax highlighting!

It would be so nice if you could please share your feedbacks and suggestions if any for the improvement of the material.

Advertisements