Site icon TestingDocs.com

How to launch Eclipse from Terminal in Ubuntu Linux

Introduction

On this page, we will learn how to launch Eclipse IDE from the Terminal on Ubuntu Linux machine. This tutorial assumes that Eclipse is installed on the Linux system.

Steps to Install Eclipse IDE on Ubuntu Linux machine:

https://www.testingdocs.com/install-eclipse-on-ubuntu-linux/

Steps to Launch Eclipse

Launch Terminal application.

Change working directory to the Eclipse install directory path from the Terminal.

$ cd <eclipse install directory> 

For example, if the eclipse installation directory is /home/testingdocs/eclipse

$ cd /home/testingdocs/eclipse

 

Launch from Terminal

To run Eclipse from the Terminal, issue the following command in the terminal

$ ./eclipse

 

This would launch the Eclipse IDE on Linux machine.

 

Add to PATH

Notice that we have to change directory into eclipse install directory. To run Eclipse from anywhere in the Terminal, add the eclipse install directory to PATH environment variable.

$ gedit /etc/profile

Append eclipse directory to the PATH.

PATH=$PATH:/home/testingdocs/eclipse

export PATH

Save the file.

Now we can launch Eclipse IDE on Ubuntu Linux from anywhere in the Terminal windows. echo PATH variable to check if the eclipse directory got appended to the existing PATH.

Command to check the PATH environment variable.

$ echo $PATH

Now, we can simply type eclipse in the Terminal from anywhere in the directory tree. There is no need to change working directory to the eclipse install directory.

$ eclipse

 

That’s it. We have learnt how to launch eclipse from the command line.

More Information on Eclipse IDE:

https://www.eclipse.org/

Exit mobile version