Re: Problem running eclipse.
I found my libswt* libraries in this location: /usr/lib/jni/
Assuming yours are in the same location, you can use this command:
Code:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64
I wonder if this is fixed for Eclipse Juno. I am using Eclipse Indigo and ran into the exact same problem you have.
Re: Problem running eclipse.
Thank you so much for this, it worked.
But could you please explain to me what the command does exactly?
Re: Problem running eclipse.
Quote:
Originally Posted by
Mohammad_Khalid_Hussain
Thank you so much for this, it worked.
But could you please explain to me what the command does exactly?
You're welcome.
The command "ln" makes a link between two files. In other OSes, this might be called a "shortcut" (Windows) or "alias" (Mac OS), although those OSes also provide graphical icons for that purpose. Basically, the link provides a pointer to the real file. So Eclipse is looking in one directory and the link makes it seem like that file is in that directory when really the file contents would be in a different directory.
As for the "-s" option, that makes the link "symbolic" which has some explanation in the man page for the ln command.
Just to let you know, one could also copy the files from their original directory to the directory in which Eclipse is searching. The difference is that the symbolic link means if you replace the real files (maybe due to an upgrade), then Eclipse would also see the replacement files. If you use a "hard" link (opposite of "symbolic"), then I think that the link gets broken/deleted if you were to replace the original files. I'm not entirely sure about the differences between hard and symbolic links though.
Re: Problem running eclipse.
Re: Problem running eclipse.
Quote:
Originally Posted by
mevun
I found my libswt* libraries in this location: /usr/lib/jni/
Assuming yours are in the same location, you can use this command:
Code:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64
I wonder if this is fixed for Eclipse Juno. I am using Eclipse Indigo and ran into the exact same problem you have.
thank you, this worked for me also. i was trying to run compass.app and was getting the same type of error. i had to delete the existsing files in the ~/.swt/lib/linux/x86_64 folder first and after that everything is now working as expected.
not sure if it matters, but i originally had openJDK installed and then switched to the true oracle version and removed openJDK.
Re: Problem running eclipse.
Quote:
Originally Posted by
nowashburn
thank you, this worked for me also. i was trying to run compass.app and was getting the same type of error. i had to delete the existsing files in the ~/.swt/lib/linux/x86_64 folder first and after that everything is now working as expected.
not sure if it matters, but i originally had openJDK installed and then switched to the true oracle version and removed openJDK.
I think Ubuntu has openJDK installed by default when you install Eclipse through the Software Centre in Ubuntu 12. For me, I first installed Eclipse through the Software Centre, then I read that for Android development I should use the Oracle JDK. So after installing Oracle JDK, I ran into the Eclipse won't start problem and googled to find someone else who had fixed it with symbolic linking.
I don't remember if I had existing files/links such that I had to delete them first. I did a little research on the "ln" command and there is a way to either force (-f, which would delete existing links/files) or an interactive mode (-i, which would ask if you wanted to overwrite). Still, it is probably best to inspect the existing files when we're not really sure what we might be deleting.