Eclipse installation and problems encountered __ubuntu

Source: Internet
Author: User
Tags gtk
One installation eclipse

The JDK is installed before you can install Eclipse 1. Go to the website to download the appropriate eclipse
My system is ubuntu16.04,jdk1.7.
Download eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz

2. Extract it into the/usr/local folder

sudo tar zxvf eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz-c/usr/local

3. Create the Eclipse Desktop shortcut icon.
CD Desktop
sudo touch eclipse.desktop
sudo vim eclipse.desktop
Then enter the following (note to modify the exec and icon paths):
[Desktop Entry]
Encoding=utf-8
Name=eclipse
Comment=eclipse
Exec=/usr/local/eclipse/eclipse
icon=/usr/local/eclipse/icon.xpm
Terminal=false
Startupnotify=true
Type=application
Categories=application;develop;

4. Turn it into an executable file
sudo chmod u+x eclipse.desktop

two problems encountered

The JVM teminated Exit code=1 appears during the 1.eclipse installation

This problem appears after I switch JDK from 1.8 to 1.7, resolved for two days, although it has been handled well, but at present there is no reason, hope great god advice.

My solution:

Using Eclipse_installer to download and install Eclipse, the older version of the computer is mars2 for the Neon,eclipse_installer reinstall, and Eclipse can be used properly after installation.

But when you restart your computer, you experience the following 2nd question.

2.The Eclipse executable Launcher is unable to locate its companion sh ...

It appears that you installed eclipse with Eclipse_installer, where both the P2 folder and the Plugins folder are in the Eclipse_installer folder, not in the Eclipse folder. The solution given on the web is to modify the startup and library paths of Eclipse.ini, but I still have no effect after my revision.

The Final Solution is:

Go to the official website to download the eclipse_mars2 version, and then follow the first installment of this article again, you can use eclipse normally.

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.