From owner-freebsd-eclipse@FreeBSD.ORG Wed Sep 21 21:31:59 2005 Return-Path: X-Original-To: freebsd-eclipse@freebsd.org Delivered-To: freebsd-eclipse@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56FA016A41F; Wed, 21 Sep 2005 21:31:59 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D4E843D46; Wed, 21 Sep 2005 21:31:54 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j8LLVk9V035668; Thu, 22 Sep 2005 00:31:46 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.13.3/8.12.11) with ESMTP id j8LLVrVG042514; Thu, 22 Sep 2005 00:31:55 +0300 (EEST) (envelope-from past@ebs.gr) Message-ID: <4331D13C.5000603@ebs.gr> Date: Thu, 22 Sep 2005 00:31:40 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050830) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Eide References: <17201.30821.379204.436530@bas.flux.utah.edu> In-Reply-To: <17201.30821.379204.436530@bas.flux.utah.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, freebsd-eclipse@freebsd.org Subject: Re: FreeBSD Port: eclipse-3.1_2 (missing library `swt-mozilla-gtk'?) X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 21:31:59 -0000 Eric Eide wrote: > [Hi! I sent the following message to `comp.unix.bsd.freebsd.misc' a few days > ago, but didn't receive any replies. So now I'm sending my question to you. > Thanks for any help you can offer. --- Eric.] > > I'm using Eclipse 3.1 from the FreeBSD ports collection, running on FreeBSD > 4.11-STABLE. On occasion I get the following error, printed to the terminal > from which Eclipse is run: > > Unhandled event loop exception > Reason: > No more handles (java.lang.UnsatisfiedLinkError: no > swt-mozilla-gtk-3138 in java.library.path) > > Along with this comes a dialog box with an ominous warning that I should exit > the workbench. But if I continue on, Eclipse seems to be fine. > > Searching around, I found that there are a bunch of similarly named libraries > within the `org.eclipse.swt.gtk.freebsd.x86' plug-in: > > libswt-atk-gtk-3138.so > libswt-awt-gtk-3138.so > libswt-cairo-gtk-3138.so > libswt-gnome-gtk-3138.so > libswt-gtk-3138.so > libswt-pi-gtk-3138.so > > ...but not the library that Eclipse is apparently looking for. > > My question is, is the port missing this library, or is my installation of > Eclipse broken in some mysterious way? There were no apparently relevant > errors during the installtion of the port. > > Thanks for any help! --- > > Eric. > > PS --- Here are the awful details of the error. > > Here is a reliable way to get the error: Install the Eclipse TPTP 4.0.0 feature > by downloading it from `eclipse.org'. Then, run the workbench and select > "Workbench->Preferences". In the preferences dialog box, select "Java->Review > Preferences". Boom! > >>From the error backtrace, one can see that the reference to the > `swt-mozilla-gtk' library is found in class `org.eclipse.swt.browser.Browser', > which is part of the above-mentioned plug-in. > > Finally, below is the backtrace in Eclipse's log: > > !ENTRY org.eclipse.ui 4 0 2005-09-16 17:01:22.55 > !MESSAGE No more handles (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3138 in java.library.path) > !STACK 0 > org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3138 in java.library.path) > at org.eclipse.swt.SWT.error(SWT.java:2968) > at org.eclipse.swt.SWT.error(SWT.java:2865) > at org.eclipse.swt.browser.Browser.(Browser.java:148) > at org.eclipse.tptp.platform.analysis.engine.ui.preferences.ReviewPreferencePage.createDetailsPanel(ReviewPreferencePage.java:248) > at org.eclipse.tptp.platform.analysis.engine.ui.preferences.ReviewPreferencePage.createContents(ReviewPreferencePage.java:158) > at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232) > at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1371) > at org.eclipse.jface.preference.PreferenceDialog$12.run(PreferenceDialog.java:1138) > at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044) > at org.eclipse.core.runtime.Platform.run(Platform.java:783) > at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) > at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148) > at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1132) > at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:351) > at org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged(PreferenceDialog.java:638) > at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:763) > at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044) > at org.eclipse.core.runtime.Platform.run(Platform.java:783) > at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) > at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148) > at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:761) > at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1042) > at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1062) > at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:231) > at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:226) > at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:392) > at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) > at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) > at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2844) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2575) > at org.eclipse.jface.window.Window.runEventLoop(Window.java:809) > at org.eclipse.jface.window.Window.open(Window.java:787) > at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66) > at org.eclipse.jface.action.Action.runWithEvent(Action.java:996) > at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538) > at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488) > at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400) > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021) > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572) > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) > at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) > at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) > at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) > at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) > at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) > 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.invokeFramework(Main.java:334) > at org.eclipse.core.launcher.Main.basicRun(Main.java:278) > at org.eclipse.core.launcher.Main.run(Main.java:973) > at org.eclipse.core.launcher.Main.main(Main.java:948) > Caused by: java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3138 in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:834) > at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123) > at org.eclipse.swt.browser.Browser.(Browser.java:145) > ... 54 more > Did you build the port with WITHOUT_MOZILLA defined? That could explain it. Cheers, Panagiotis