Open Linux gEdit with Java Program

By | February 28, 2016

Open Linux gEdit with Java Program

Here, we have listed out a Basic Program to Execute gEdit with Java Programming. This application can be used to open any Application in Microsoft Windows and Linux Operating Systems. gEdit Application is a Text Editor specifically for Linux Ubuntu Operating Systems.

About The Program

The getRuntime() method is a method of Runtime Object in java.lang package. It returns the present Runtime Object associated with the Java Application (Program) that is now in process. The Runtime Class Functions are Instance Functions and hence they need to be invoked with respect to the Current Runtime Object.

Also Read: Convert Decimal Integer To Binary Java Program

Method 1: Source Code To Execute Linux gEdit with Java Program


Method 2: Source Code To Run Linux gEdit with Java Programming

Also Read: Java Code To Print System Date and Time

The above program opens the gEdit Application through Java Program with a pre-defined File Name assigned to the gEdit File.


This Program to Execute Linux gEdit with Java can be used as a reference to open any Application on Windows or Linux Operating Systems. All you need to do is to change the Application name in the exec method.

In case you get any Compilation Errors with this Java Program or you have any doubt about it, mention it in the Comment Section.

Let's Discuss