Install eclipse
Last updated
Last updated
Download from
2.
tar xvfz eclipse-inst-linux64.tar.gz
cd eclipse-installer/
./eclipse-inst
======================================*
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
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é.
PourCréez un lanceurdans votre menu Application afin de lancer le fichier
eclipse:créer le 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)
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
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.
Open a terminal (Ctrl-Alt-T) and switch it to root permissions by entering:
$ sudo su
Extract the Eclipse installation package into /opt:
# cd /opt
# sudo tar -xzvf
<
path_to_the_downloaded_package
>
Increase the memory for the Eclipse installation by modifying the
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
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:
Close and open the terminal.