> For the complete documentation index, see [llms.txt](https://lamhung81-2.gitbook.io/github-basic-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lamhung81-2.gitbook.io/github-basic-tutorial/install-eclipse.md).

# Install eclipse

1. Download from&#x20;

> [Eclipse website](https://www.eclipse.org/downloads/)

2\.

> tar xvfz eclipse-inst-linux64.tar.gz
>
> cd eclipse-installer/
>
> ./eclipse-inst ![](https://2312561935-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6K6AifqMsztHFnLbbW%2Fsync%2F4800aaf2d924efda917b76770c583ecb59f6f52d.png?generation=1588418419197331\&alt=media)

\======================================\*

### [Installation des dernières versions disponibles sans l'outil "Eclipse Installer"](https://doc.ubuntu-fr.org/eclipse) <a href="#installation_des_dernieres_versions_disponibles_sans_l_outil_eclipse_installer" id="installation_des_dernieres_versions_disponibles_sans_l_outil_eclipse_installer"></a>

If download

eclipse-cpp-2019-03-R-linux-gtk-x86\_64.tar.gz

Créez un dossier où vous voulez : **/opt/eclipse**

Décompressez l'archive précédemment téléchargée dans ce dossier

Lancer Eclipse en le situant bien dans son répertoire d'installation : /opt/eclipse/eclipse

## Créer un lanceur <a href="#creer_un_lanceur" id="creer_un_lanceur"></a>

Pour les dernières versions, et si ce lanceur n'a pas été créé par l'installation Snap ou Deb, il peut être utile de créer un lanceur pour lancer Eclipse depuis son bureau préféré.

Pour[Créez un lanceur](https://doc.ubuntu-fr.org/raccourci-lanceur)dans votre menu Application afin de lancer le fichier

**eclipse**:[créer le fichier](https://doc.ubuntu-fr.org/tutoriel/comment_modifier_un_fichier)

**eclipse.desktop**

ou en ligne de commande

**gksudo gedit /usr/share/applications/eclipse.desktop**

et copiez-y le texte suivant dans le fichier eclipse.desktop (en supposant que votre répertoire eclipse se trouve sous /opt)

```
[Desktop Entry]
Name=Eclipse 
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=Eclipse
```

Donnez les droits en lecture à tous les utilisateurs au fichier eclipse.desktop créé.

`sudo chmod a+r /usr/share/applications/eclipse.desktop`

\===================================================

A better instruction is follows

## Installing Eclipse the hard way

Usually, extracting the Eclipse Luno into your home directory shall be enough to allow you to work with it. But sometimes the package requires to be installed into "/opt" and refuses to work properly or to work at all when installed elsewhere. In that case (if you are not a Linux guru) it is often easier to just reinstall the OS from scratch (remember to back up your data first). However sometimes reinstallation of the OS is not feasible.

The following workflow was used to install Eclipse Luno on one such misbehaving system, however it is not guaranteed that this type of misbehavior will be exactly the same in your case so your mileage may vary. These instructions assume you already have the JDK and Maven packages installed and the installation package downloaded as described in the "easy way" installation instructions.

1. Open a terminal (Ctrl-Alt-T) and switch it to root permissions by entering:

`$ sudo su`

1. Extract the Eclipse installation package into /opt:

`# cd /opt`

`# sudo tar -xzvf`

`<`

`path_to_the_downloaded_package`

`>`

1. Increase the memory for the Eclipse installation by modifying the

[/opt/eclipse/eclipse.ini](http://wiki.eclipse.org/Eclipse.ini)

file. See the "easy way" for instructions.

Create a startup script for the Eclipse:

`# cd /usr/local/bin`

`# echo 'ECLIPSE=/opt/eclipse/eclipse'`

`>`

`eclipse`

`# echo 'exec $ECLIPSE "$@"'`

`>`

`>`

`eclipse`

`# chmod +x eclipse`

1. Now exit the root mode and start the installed eclipse:

   `# exit`

   `$ eclipse`

\*\*\*

We can simply copy eclipse folder to /opt, then

open`~/.bashrc`with your favourite editor and add the following lines to the end of the file:

```
if [ -d "/opt/eclipse" ] ; then
    PATH="/opt/eclipse:$PATH"
fi
```

Close and open the terminal.
