I emerged latest eclipse. It installed ok but when I tried to run it I got this error: bash-2.05b$ eclipse Eclipse found. Executable found and is executable. Found existing workbench directory for current user. Starting Eclipse... java.lang.UnsatisfiedLinkError: no swt-motif-2135 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:108) at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20) at org.eclipse.swt.widgets.Display.createDisplay(Display.java:590) at org.eclipse.swt.widgets.Display.create(Display.java:576) at org.eclipse.swt.graphics.Device.<init>(Device.java:126) at org.eclipse.swt.widgets.Display.<init>(Display.java:339) at org.eclipse.swt.widgets.Display.<init>(Display.java:336) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1361) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) bash-2.05b$ Reproducible: Always Steps to Reproduce: 1. as root: ACCEPT_KEYWORDS="~x86" emerge eclipse-sdk 2. login as user in X and run eclipse in xterm or whatever 3. now you see what I pasted above. Actual Results: I got the info that something is wrong and to look in the logs. Here is the log: !SESSION ---------------------------------------------------------------------- !ENTRY org.eclipse.core.launcher 4 0 Feb 23, 2004 23:41:40.852 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) Caused by: java.lang.reflect.InvocationTargetException at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:861) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) ... 7 more Caused by: java.lang.UnsatisfiedLinkError: no swt-motif-2135 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:108) at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20) at org.eclipse.swt.widgets.Display.createDisplay(Display.java:590) at org.eclipse.swt.widgets.Display.create(Display.java:576) at org.eclipse.swt.graphics.Device.<init>(Device.java:126) at org.eclipse.swt.widgets.Display.<init>(Display.java:339) at org.eclipse.swt.widgets.Display.<init>(Display.java:336) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1361) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858) ... 8 more Expected Results: It should work. I have all dependiencies ok. Java machine is in the right place. Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.2) ================================================================= System uname: 2.6.2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -pipe -O2" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://212.219.247.12/sites/www.ibiblio.org/gentoo/ http://212.219.247.17/sites/www.ibiblio.org/gentoo/ http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa arts avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif gpm gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"
This is strange because I run eclipse under BlackDown 1.4.1 exclusively. What version of the JDK/JRE are you using? Do you have anything else that act strangely in Java?
This looks like a problem during the compilation of your eclipse-sdk. 1) Check that there was sufficient disk space during compilation 2) Check if you can reproduce this bug with eclipse-sdk-2.1.3 3) If you have the chance, try a different VM, or at least tell me which you're running now.
Ok. Sorry for not answering these question for so long time. I finally fixed this... don't really know how but it works. Just a few days later I tried to emerge the eclipse and started it. Surprise: It started smoothly without any problems. Sorry guys for troubling you. It is a must-have software which i use at my university. I couldn't fix this for a few hours trying different combinations and so on. Then I posted this bug here. I have one more question about this and don't know if I should report it as a new bug or maybe it is too trivial. Each time I start eclipse it starts with a window saying "Completing install...". I believe it should appear only the first time I start eclipse after installation. Any suggestions?
run eclipse once as root or some other user with write access to the eclipse install dir. this will complete the install for good.
Doesn't work. I did run it a few times as a root and under root it also looks the same.
had the same problem, and after some investigation found the root of evil (and i'm not meaning MS;): during compilation an error occurs, but the emerge is not aborted (i saw the error just by accident, and then redirected the whole output into a file to search for it). unfortunately i haven't yet figured out a fix, but it shouldn't be too hard (and i'll post one, once i found it). here is the relevant part: === gcc -O -s -DSWT_VERSION=2136 -DLINUX -DMOTIF -fpic -I./ -I/opt/blackdown-jdk-1.4.1/bin/include -I/usr/X11R6/include -I/usr/X11R6/include -c -o callback.o callback.c In file included from callback.c:15: swt.h:23:17: jni.h: No such file or directory === followed by ~100 lines of errors flo@basil ~ $ emerge --info Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-rc1-mm1) ================================================================= System uname: 2.6.4-rc1-mm1 i686 AMD Athlon(TM) XP 2200+ Gentoo Base System version 1.4.9 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X alsa apm arts avi berkdb cdr crypt cups dga directfb doc dvd encode esd foomaticdb gdbm ggi gif gpm gtk2 imap imlib innodb ipv6 jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex truetype x86 xinerama xml2 xmms xv zlib"
Created attachment 29964 [details, diff] eclipse.diff fixes include-problem finally suceeded merging eclipse. the attached patch fixes the problem, but is far from perfect. some general information: - problem arises, when merging motif-swt. i don't know, if only then. (would explain, why some people don't encounter this problem) - emerge should abort when encountering an error. (if you know why this doesn't happen here, please drop me a note) - sed-script in ebuild is completely unadapted for the given make_linux.mak (most of the sed-lines don't match anything). so there's still room for improvements:)
I think we'll need to modularise the build process a bit more, and split it into separate functions inside the ebuild. Each part should fail gracefully with a proper error message if, for some reason, the expected end-result fails to be produced. Usually, it's just a matter of looking at the return value from ant, but that doesn't always work. In the cases where it doesn't, we could always check for the existence of the files we know should be produced. I'll get to this later in the week, hopefully
I'm pretty confident this has been fixed now with the rewrite of the ebuilds. I have compiled the dev-util/eclipse-sdk-2.1.3-r2 with both sun-jdk and blackdown-jdk without any hiccups.