Install Eclipse on Utuntu

Source: Internet
Author: User
Before installing Eclipse, make sure you have the JDK installed.
1, first download eclipse-sdk-3.2, this is the latest version of Eclipse
Official Download: http://www.eclipse.org/downloads/
2. Install Eclipse
(1) Extract the eclipse-sdk-3.2 into a directory, I unzipped to the/opt, get/opt/eclipse directory
If you want to change the eclipse directory to root, you can execute the following command
sudo chown-r root:root/opt/eclipse
Of course, you don't have to.
(2) Create a startup script eclipse in the/usr/bin directory, and execute the following command to create: sudo vi/usr/bin/eclipse
If you are unfamiliar with the simple text editor gedit of the VI command, use the following command to create: sudo gedit/usr/bin/eclipse
Then add the following content to the file:
#!/bin/sh
Export Mozilla_five_home= "/usr/lib/mozilla/"
Export Eclipse_home= "/opt/eclipse"

$ECLIPSE _home/eclipse $*
(3) To modify the permissions of the script to make it executable, execute the following command:
sudo chmod +x/usr/bin/eclipse
3. Add Eclipse Launch icon to desktop or Gnome menu
(1) Add icons on the desktop or the startup panel:
Create a new initiator on the desktop (right-click Desktop-> Create initiator) or panel (right-click panel-> Add to panel-> custom Application Launcher) and add the following data:
Name: Eclipse Platform
Commands: Eclipse
Icon:/opt/eclipse/icon.xpm
(2) Add an icon to the Applications (application) menu
Use a text editor to create a new initiator named Eclipse.desktop in the/usr/share/applications directory, such as the following command:
sudo vi/usr/share/applications/eclipse.desktop
Or
sudo gedit/usr/share/applications/eclipse.desktop

Then 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 icon for your desktop eclipse to run eclipse
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.