1. Official download: Example (1) If you want to change the eclipse directory to root, you can run the following command sudochown-Rroot: root/opt/eclipse create a STARTUP script eclipse in the/usr/bin directory (2) use the following command to create: s
1. Download: http://www.eclipse.org/downloads/
2. decompress the package to the specified directory:/opt
You can decompress it to the current directory first and then
Mv eclipse/opt
(1) To change the eclipse directory to root, run the following command:
Sudo chown-R root: root/opt/eclipse
Create a STARTUP script eclipse in the/usr/bin directory
(2) Use the following command to create a cluster:
Sudo gedit/usr/bin/eclipse
Add the following content to the file:
#! /Bin/sh
Export illa_five_home = "/usr/lib/mozilla /"
Export ECLIPSE_HOME = "/opt/eclipse"
$ ECLIPSE_HOME/eclipse $ *
(3) change the permission of the script to executable and execute the following command:
Sudo chmod + x/usr/bin/eclipse
3. Add the eclipse startup icon to the desktop or gnome menu.
(1) Add an icon on the desktop or startup panel:
Create a new starter on the desktop (right-click desktop> Create initiator) or panel (right-click Panel> Add to Panel> Custom application launcher, then add the following data:
Name: Eclipse Platform
Command: eclipse
Icon:/opt/eclipse/icon. xpm
(2) Add an icon on the Applications menu
Use a text editor to create an eclipse. desktop starter in the/usr/share/applications directory. Run the following command:
Sudo vi/usr/share/applications/eclipse. desktop
Or
Sudo gedit/usr/share/applications/eclipse. desktop
Add the following content to the file:
[Desktop Entry]
Encoding = UTF-8
Name = Eclipse Platform
Comment = Eclipse IDE
Exec = eclipse
Icon =/opt/eclipse/icon. xpm
Terminal = false
StartupNotify = true
Type = Application
Categories = Application; Development;
Save the file. Complete the installation process. You can double-click the eclipse icon on the desktop to run eclipse.