1.2.2 – Executing a Java Program in Edit+

by subbu on December 5, 2018

How to execute a java program in Edit+

In the previous session we have created tools to compile and execute a java program. Out of which the first tool (ctrl+1) is to compile the program and the second tool (ctrl+2) is to execute the java program.

Here we will see how a java program can be executed in edit+

Select File – New – Java

new java program edit+

Type the following sample program; Make sure that the name of the class Demo must be capitalized

class Demo
  public static void main(String args[])
   System.out.println("Hello World");

Note: Here S in String, S in System and D in Demo must be written in capitals because java is a case sensitive language.


Save the program with the name of the class “Demo” and with .java file extension under your personal folder. Here I am saving under “d:\progs” folder.

Select File – Save – File Name : Demo.java



Note: Here the name of class (Demo) and the name of program (Demo.java) must have the same name and both must be capitalized

Compile the program either by selecting the first tool or by using ctrl+1


Execute the program either by selecting second tool or by using ctrl+2


Previous post:

Next post: