1. First, make sure that jdk has been installed in Ubuntu. For the installation method, see Ubuntu12.04. For details about how to install and configure JavaJDK, see idea.
1, first of all to ensure that jdk has been installed in Ubuntu, see the installation method: Ubuntu 12.04 installation and configuration of Java JDK see http://www.linuxidc.com/Linux/2012-10/71937.htm
2. Download Eclipse
3. Decompress eclipse to the directory you want to install, copy the jre file under the jdk installation directory to the eclipse installation directory, and double-click the eclipse running icon, eclipse started.
How to create an eclipse starter on the desktop
1. sudo apt-get install -- no-install-recommends gnome-panel
2. Run: gnome-desktop-item-edit ~ /-- Create-new
Alternatively, use the following method:
$ Sudo su
# Vim/usr/share/applications/eclipse. desktop
Write the following content
[Desktop Entry]
Name = Eclipse
Comment = Eclipse SDK
Encoding = UTF-8
Exec =/usr/local/eclipse
Icon =/usr/local/eclipse/icon. xpm
Terminal = false
Type = Application
Categories = Application; Development;
After that, you can see the eclipse icon under Application-Programming.
Note:
Exec =/usr/local/eclipse
Icon =/usr/local/eclipse/icon. xpm
These are the directories where the eclipse executable files and icons are located. They are modified according to your actual situation.