Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just finished upgrading my ubuntu

I had eclipse installed from terminal using apt-get install eclipse

Now I'm getting the following error

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

Please how do I go fix this

I've tried most of the fixes on this site but they don't seem to work for me

Here's the log

!SESSION 2012-05-12 14:52:26.563 -----------------------------------------------
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2012-05-12 14:52:29.469
!MESSAGE Application error
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/toluwanimi/.swt/lib/linux/x86_64/
        Can't load library: /home/toluwanimi/.swt/lib/linux/x86_64/

        at org.eclipse.swt.internal.Library.loadLibrary(
        at org.eclipse.swt.internal.Library.loadLibrary(
        at org.eclipse.swt.internal.C.<clinit>(
        at org.eclipse.swt.internal.Converter.wcsToMbcs(
        at org.eclipse.swt.internal.Converter.wcsToMbcs(
        at org.eclipse.swt.widgets.Display.<clinit>(
        at org.eclipse.ui.internal.Workbench.createDisplay(
        at org.eclipse.ui.PlatformUI.createDisplay(
        at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.eclipse.equinox.launcher.Main.invokeFramework(
        at org.eclipse.equinox.launcher.Main.basicRun(
        at org.eclipse.equinox.launcher.Main.main(Main.java1386)
share|improve this question
What is in the log file? – desgua May 12 '12 at 14:12
wait a second.. – Prosenik May 12 '12 at 14:15
Make sure you have 64 bit Eclipse and 64 bit java or 32 bit Eclipse and 32 bit java as suggested here: – desgua May 12 '12 at 14:31
@desgua you should propose your comment as a potential answer :) – Huygens May 12 '12 at 14:35
I had the same problem , see – Binarylife May 12 '12 at 14:57

have you installed different versions of java rather than 1.7.x? it may be confused to eclipse, just see this link to re-configure your java environment.

To fix, open up terminal and type

sudo update-alternatives --config java

In addition, I recommend install java and eclipse with self-extract files, it's easy to re-configure and can have multiple versions of them. Hope it helps.

share|improve this answer
thanks, I have 3 java alternatives - switching to another as the preferred on worked - Thanks all – Prosenik May 12 '12 at 15:01
yeah, also , keep in mind that you can put a 32bit jdk on 64 bit linux and also run the 32bit eclipse. that is what I do. of course, you have to fiddle with alternatives to make that work though. – djangofan May 12 '12 at 16:21
cd ~/.swt/lib/linux/x86_64
ln -s /usr/lib/jni/
ln -s /usr/lib/jni/
ln -s /usr/lib/jni/

I created three symlinks in the folder ~/.swt/lib/linux/x86_64

Now Eclipse is working.

share|improve this answer

Try with this command:

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/ 
share|improve this answer
What is supposed to do this? – Lucio Sep 7 '13 at 19:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.