Ubuntu Install Eclipse

Source: Internet
Author: User

Installation steps:

First, download the client:

Because the official website closed Linux support, only to Huajun software Park to download, address:

Http://www.onlinedown.net/softdown/558344_2.htm

Unzip and put into,/opt/java/eclipse directory, decompression method reference previous article "Ubuntu Configuration Java JDK"

Second, open eclipse:

Open terminal, input,cd/opt/java/eclipse

./eclipse

Can be used, but has not been added to the shortcut, currently only use this method to open.

Third, create a shortcut to eclipse:

Open Terminal input:gedit eclipse.desktop

In the Open text file, enter:

[Desktop Entry]
version=1.0
Type=application
Name=eclipse
Name[zh_cn]=eclipse
Comment=eclipse
Comment[zh_cn]=eclipse
Exec=/home/tecn/adt-bundle-linux-x86_64-20140321/eclipse/eclipse
icon=/home/tecn/adt-bundle-linux-x86_64-20140321/eclipse/icon.xpm
Terminal=false

Save, return to terminal input again:sudo cp eclipse.desktop/usr/share/applications/

Open Dash, search Eclipse, get a shortcut, but I opened the program prompt did not find the JRE, so also to do the next configuration,

However, it has been shown that the shortcut was established successfully.

Iv. associating the JRE to eclipse

After completing the above operation, open eclipse in dash and prompt for the JRE not found,

First look at my environment variables:

Export JAVA_HOME=/OPT/JAVA/JDK

Export Classpath=${java_home}/lib:.

Export Path=${java_home}/bin: $PATH

Because my java_home is already configured as the JDK's installation directory, just create a soft connection in the Eclipse directory, connect to the JDK directory,

In terminal input:cd/opt/java/eclipse

sudo ln-sf $JAVA _home/jre

Finish, open eclipse in dash and open it smoothly.

Note:

After the installation of the second step, found that the software can not be used, the phenomenon is the new project, the software will die, there are online to find the following solutions:

Eclipse cannot be set up in ubuntu16.04 and new project card dead solution

1. Open terminal (terminal) and enter the following command:

export SWT_GTK3=0

2.然后进入eclipse的目录下 ,用gedit打开eclipse,ini文件,对其进行如下修改:

Cd/opt/java/eclipse = This is my installation directory.

sudo gedit Eclipse.ini

3. In front of the following line:

--launcher.appendVmargs

Add the following two lines of statements:

--launcher. Gtk_version

2

The next step is to work perfectly.

Ubuntu Install 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.