You are not logged in.
I recently installed Eclipse on my new Arch system and ran into the famous error:
/mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/org.eclipse.osgi/bundles/193/1/.cp/libswt-gtk-4236.so: /mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/org.eclipse.osgi/bundles/193/1/.cp/libswt-gtk-4236.so: failed to map segment from shared object: Operation not permitted
I know the that soft-linking /usr/lib/libswt-* into /mnt/home/.swt/lib/linux/x86_64/ fixes the issue, but the problem is that my libswt files are of a different version. They all end in 4234, while the ones eclipse is looking for end in 4236. Is it because OpenJDK and Eclipse from the ArchRepositories are of incompatible versions? Do I have to manually find a matching version of eclipse and install that instead, or is there an easier way?
By the way, here are some information that might be relevant:
This is the original error message:
┌─[20:52:27]──[91/1683]:/mnt/home$
└──>> cat /mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/1371745338639.log
!SESSION 2013-06-20 20:52:18.353 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_40
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64!ENTRY org.eclipse.osgi 4 0 2013-06-20 20:52:19.894
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/org.eclipse.osgi/bundles/193/1/.cp/libswt-gtk-4236.so: /mnt/home/.eclipse/org.eclipse.platform_4.2.0_1543616141/configuration/org.eclipse.osgi/bundles/193/1/.cp/libswt-gtk-4236.so: failed to map segment from shared object: Operation not permitted
no swt-gtk in java.library.path
Can't load library: /mnt/home/.swt/lib/linux/x86_64/libswt-gtk-4236.so
Can't load library: /mnt/home/.swt/lib/linux/x86_64/libswt-gtk.so
/mnt/home/.swt/lib/linux/x86_64/libswt-gtk-4236.so: /mnt/home/.swt/lib/linux/x86_64/libswt-gtk-4236.so: failed to map segment from shared object: Operation not permittedat org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:133)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:653)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
This is my version of libswt:
┌─[21:15:21]──[92/1684]:/mnt/home$
└──>> locate libswt
/usr/lib/libswt-atk-gtk-4234.so
/usr/lib/libswt-awt-gtk-4234.so
/usr/lib/libswt-cairo-gtk-4234.so
/usr/lib/libswt-glx-gtk-4234.so
/usr/lib/libswt-gnome-gtk-4234.so
/usr/lib/libswt-gtk-4234.so
/usr/lib/libswt-pi-gtk-4234.so
/usr/lib/libswt-webkit-gtk-4234.so
These are the version I have installed:
┌─[21:20:00]──[109/1701]:/mnt/home$
└──>> pacman -Q swt
swt 4.2.1-2
┌─[21:20:08]──[110/1702]:/mnt/home$
└──>> pacman -Q eclipse
eclipse 4.2.2-1
┌─[21:20:09]──[111/1703]:/mnt/home$
└──>> pacman -Q jdk7-openjdk
jdk7-openjdk 7.u40_2.4.0-1
┌─[21:20:10]──[112/1704]:/mnt/home$
└──>> pacman -Q jre7-openjdk
jre7-openjdk 7.u40_2.4.0-1
Last edited by Untitled (2013-06-23 18:11:53)
Offline
Is your system up to date? And absolutely DO NOT symlink libraries, so undo that if you did...
Offline
Thanks for the reply.
My Arch is just a few days old so I had not updated it yet.
I just ran an update, but the situation is the same.
(Thanks for the heads-up on the symlinking though. I really thought it would be a cool idea!)
Last edited by Untitled (2013-06-20 20:34:14)
Offline
I tried installing an older version of Eclipse. I installed the Aptana Studio from AUR. It required libswt-gtk-3740.so ( I have libswt-gtk-4234.so ), but still the same error occurs. Is libswt-gtk not backward compatible or am I doing it wrong?
Offline
Never mind, fixed it.
It was a permission issue. I had mounted my home as noexec.
Offline