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've installed eclipse but it won't launch. I tried launching from the app launcher and with the terminal and I keep getting this error:

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

I can post the log information if you need it.

share|improve this question
Include the log file in your post. By that the problem will be more clear. – Sat93 Jun 18 '12 at 4:53
What version of Eclipse are you running? – Mitch Jun 18 '12 at 5:22
Please post the Log output. – Josh Melling Jun 18 '12 at 5:36
up vote 1 down vote accepted

Did you install Eclipse via the Ubuntu Software Center? Since it's never up to date there, you should donwload it from the Eclipse website. 3.7.2 is the latest, you seem to be running 3.7.0... After having unpacked the data to whatever place you want you can launch it by running the eclipse executable (purple with two gears for an icon). Unfortunately it doesn't really support being added to the launcher that way. You can of course create a desktop shortcut to the eclipse executable.

share|improve this answer
Download eclipse from official wevsite. Extract the folder in /usr/share . Create a launcher using eclipse.exe. Make sure this exe have the permission to run as program. Creating a launcher is easy. Open any file under /usr/share/applications using Gedit. Then copy the contents to a new file. Edit "Exec=/usr/share/Eclipse/eclipse". Change the name to Eclipse. Save it as "Eclipse.desktop" then cut/paste this file to /usr/share/applications – Curious Apprentice Jun 18 '12 at 12:43
For more help regarding to creating a launcher check – Curious Apprentice Jun 18 '12 at 12:44
thanks for your help guys... – kreshendo Jun 18 '12 at 14:11
ok. i got eclipse to launch by clicking the exe but I can't seem to launch it using the sudo command from the terminal. I'm trying to set up my computer for android app development. When I type 'sudo eclipse' it tells me the command is not found. any insight? – kreshendo Jun 18 '12 at 14:51
Are you able to run eclipse without the sudo? Try typing sudo -s which will let you use the terminal as a root user until closing it. Then try starting eclipse. – Dragon5689 Jun 18 '12 at 18:39

OK, the problem is that Eclipse IDE does not know where the swt library is located.

You need to help the software find it. You can see that by going to the log file on the error message.

Here is what I did to fix it:

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
share|improve this answer

Try this command again:

sudo apt-get install eclipse
share|improve this answer

just copy required libraries

sudo cp /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/

works for me.

share|improve this answer

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.