After I installed Aptana (install directory: /usr/share/aptana )
I keep getting errors like this:
An SWT Error has occurred, you are
recommended to exit the workbench.
Subsequent errors may happen and
terminate the workbench without
warning. See the .log file for more
details.
looking in the logs I see this:
!MESSAGE No more handles
(java.lang.UnsatisfiedLinkError:
/root/.Aptana/Aptana
Studio/configuration/org.eclipse.osgi/bundles/72/1/.cp/libswt-mozilla-gtk-3236.so:
libxpcom.so: cannot open shared object
file: No such file or directory)!STACK 0 org.eclipse.swt.SWTError: No more handles(java.lang.UnsatisfiedLinkError:
/root/.Aptana/Aptana
Studio/configuration/org.eclipse.osgi/bundles/72/1/.cp/libswt-mozilla-gtk-3236.so:
libxpcom.so: cannot open shared object
file: No such file or directory)
Well after search the forums and other sites for about an hour, people suggested I install these packages.
* yum install gtk2-devel
* yum install xulrunner
* yum install libstdc*
* yum install gtk2*
* yum install libswt3-gtk2*
* yum install compat-libstdc++-33
I had some already installed and I don’t know if they are really required but there they are for you.
After all that it still didn’t work
I came across this post. in the post it has a file you need to download called aptana.sh.
Here is the code if the file is not available:
Still didn’t work so I decided to see if the file it was trying to call existed. the command for the file name in:
locate libgtkembedmoz.so
it found it so I added the condition to the script and now it works great, YEAH!!
elif [ -e /usr/lib/esc-1.0.0/xulrunner/libgtkembedmoz.so ]; thenexport MOZILLA_FIVE_HOME=/usr/lib/esc-1.0.0/xulrunner
Let me know of any other findings that might help out.
Thanks,
–Phill