Ubuntu14.04 Installing eclipse

Source: Internet
Author: User

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

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.