Installing eclipse in CentOS and importing project from GitHub.

Installing Eclipse……………..

Download:

https://www.eclipse.org/downloads/

Extract:

as the file is .gz we use ‘z’

sudo tar -xvzf  eclipse-inst-linux64.tar.gz

Set permission:

Navigate to extract folder

set execute permission

chmod 777 *

Run installer:

eclipse-inst will be available in the extracted directory , execute it using the below command

Note: to execute we have to give command like ./file-name , just giving file-name won’t execute it.

sudo ./eclipse-inst

Choose Eclipse for Dev:

Choose eclipse dev and click install, accept all the license and select remember license when prompted. Launch the product once done.

Note down the installation folder, to start eclipse you need to goto installation folder and run ./eclipse. Default is : /root/eclipse

Choose Eclipse IDE for dev:

Importing project from gihub………..

We can use github directly or by cloning it to a local repo first and then integrating the local repo to eclipse. Lets see both approaches.

Importing directly from GitHub:

Click File>Import>Git>Projects From git

Choose clone URI:

Provide the git clone URL:

Give other details as required ( for a public repo only URL is required) .

Click next on pages and choose import existing project:

You should have existing project in git-hub, else choose new project wizard

Select project:

The window will show both your project and the github repo root, just select the project

Importing from local GitHub:

Create a folder and run the below commands: