Install eclipse in Ubuntu, run error handling

Source: Internet
Author: User
Tags gtk

Install Eclipse in Ubuntu

sudo apt-get install ECLIPSE-CDT eclipse

When the installation is complete, an error box appears when you start the program:

An error has occurred. See the log file
/home/Good/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1417143109545.log.

Open File Discovery error message:

! ENTRY Org.eclipse.osgi 4 0 2014-11-27 18:51:50.739
! MESSAGE Application Error
! STACK 1
Java.lang.UnsatisfiedLinkError:Could not load SWT library. Reasons:
No swt-gtk-3740 in Java.library.path
No SWT-GTK in Java.library.path
Can ' t load library:/home/good/.swt/lib/linux/x86_64/libswt-gtk-3740.so
Can ' t load library:/home/good/.swt/lib/linux/x86_64/libswt-gtk.so

SWT-GTK didn't find it.

So it's customary to enter

sudo apt-get install swt-gtk-3740

The result is:

E:unable to locate package swt-gtk-3740

So in the System library directory, the results found in/usr/lib/jni/there are several LIBSWT beginning of the library files. In error, either this path is added to the Java.library.path , or the file is placed / The home/x/.swt/lib/linux/x86_64/ directory.

Choose to use the latter, but not like copying duplicate files, so just make a symbolic connection.

Ln-s/usr/lib/jni/libswt-*3740.so ~/.swt/lib/linux/x86_64/

Then run eclipse again, and it will start normally.

Install eclipse in Ubuntu, run error handling

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.