From owner-freebsd-ports@FreeBSD.ORG Wed Sep 21 15:12:39 2005 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CC5E16A41F; Wed, 21 Sep 2005 15:12:39 +0000 (GMT) (envelope-from eeide@flux.utah.edu) Received: from bas.flux.utah.edu (bas.flux.utah.edu [155.98.60.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 996B843D45; Wed, 21 Sep 2005 15:12:38 +0000 (GMT) (envelope-from eeide@flux.utah.edu) Received: from bas.flux.utah.edu (localhost [127.0.0.1]) by bas.flux.utah.edu (8.12.11/8.12.11) with ESMTP id j8LFCbSX013359; Wed, 21 Sep 2005 09:12:37 -0600 (MDT) (envelope-from eeide@bas.flux.utah.edu) Received: (from eeide@localhost) by bas.flux.utah.edu (8.12.11/8.13.1/Submit) id j8LFCbco013356; Wed, 21 Sep 2005 09:12:37 -0600 (MDT) (envelope-from eeide) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17201.30821.379204.436530@bas.flux.utah.edu> Date: Wed, 21 Sep 2005 09:12:37 -0600 From: Eric Eide To: freebsd-eclipse@FreeBSD.org X-Mailer: VM 7.18 under 21.4 (patch 16) "Corporate Culture" XEmacs Lucid Cc: ports@FreeBSD.org, Eric Eide Subject: FreeBSD Port: eclipse-3.1_2 (missing library `swt-mozilla-gtk'?) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 15:12:39 -0000 [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 -- ------------------------------------------------------------------------------- Eric Eide . University of Utah School of Computing http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX