Download the zip package from Eclipse official website
: http://www.eclipse.org/downloads/
Unzip to/usr/local
sudo tar xzvf eclipse-standard-luna-r-linux-gtk.tar.gz-c/usr/local
The- C parameter of tar specifies the directory where the files are extracted
Create a startup script in the/usr/bin directory eclipse
sudo gedit/usr/bin/eclipse
Then add the following to the file:
#!/bin/sh export eclipse_home=/usr/local/eclipse$eclipse_home/eclipse $*
ps:$* ([email protected]) The value of all parameters passed to the script
The purpose of this command is to be able to open eclipse by entering the Eclipse command directly under Terminal, but at this point there is not enough permission, and a 4th step is required.
Modify the permissions of the script to make it executable,
sudo chmod +x/usr/bin/eclipse
You can start the IDE by entering Eclipse from the command line.
Create a startup icon on the desktop
Method One, create from the desktop launcher
Command: Gnome-desktop-item-edit ~/--create-new
Name: Eclipse
Command: Eclipse
Icon:/usr/local/eclipse/icon.xpm
Attention:
(1) The above order is not an Ubuntu comes with, we need to install:
sudo apt-get install--no-install-recommends Gnome-panel
(2) The startup icon generated by this mode double-click the runtime will not produce a command prompt window, very friendly
method Two, by creating in the application, is actually added to the applications
Sudo
[Desktop entry]name=eclipsecomment=eclipse IDE (v4. 3) Exec=eclipseicon=/usr/local/eclipse/icon.xpmTerminal=false Type=applicationcategories=development; Startupnotify=true
Save the file. Then copy the file to your desktop, and you can double-click the desktop Eclipse icon to run Eclipse.
Note: The Red section indicates whether the double-click Runtime generates a command-line window, and True indicates that the command-line window is not friendly, so be sure to write the value of terminal as false
I'm the dividing line of the king of the Land Tiger.
Reference: http://www.cnblogs.com/heyonggang/archive/2013/10/13/3366996.html