David Sledge wrote:

Hi David,

thanks for the Fix!!

Just tried that on my "Packages" Laptop; however, on that the xpcom.so is not located unter /usr/local/lib/mozilla but /usr/X11R6/lib/mozilla.

So, I checked ftp.freebsd.org/pub/FreeBSD/ports/packages/All and Latest...

In All there is only a mozilla-fonts-Package...

150 Data connection accepted from 84.57.200.69:54162; transfer starting.
-rw-r--r-- 1 ftpuser ftpusers 459574 Sep 24 17:52 mozilla-fonts-1.0_1.tbz
226 Listing completed.

In Latest is a Mozilla 1.7.13,2.. However, it's Symlink points to the non-existent Port in ../All :-(

227 Entering Passive Mode (62,243,72,50,238,85)
150 Data connection accepted from 84.57.200.69:52695; transfer starting.
lrwxr-xr-x 1 ftpuser ftpusers 30 Oct 29 01:08 mozilla-fonts.tbz -> ../All/mozilla-fonts-1.0_1.tbz lrwxr-xr-x 1 ftpuser ftpusers 27 Oct 29 01:08 mozilla.tbz -> ../All/mozilla-1.7.13,2.tbz
226 Listing completed.

As the installed Version is mozilla-1.7.13,2 I hope I have a "Correct" Version here; so, I changed the MOZILLA_FIVE_HOME to /usr/X11R6/lib/mozilla.

MOZILLA_FIVE_HOME=/usr/X11R6/lib/mozilla
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH

However, when I start Eclipse and the select Window / Preferences / General / Web Browser Eclipse crashes with

[EMAIL PROTECTED] ~]$ eclipse
/libexec/ld-elf.so.1: /home/ralf/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/80/1/.cp/libswt-mozilla-gtk-3235.so: Undefined symbol "NS_InitEmbedding"

So, it seems I don't have the "correct" xpcom.so..

Will try your Fix on the amd64 Box tomorrow and maybe try to Install Mozilla from a Port on my Laptop, then Compile Eclipse and give it a try again!

Thanks again for the Fix!

Cheers,
_ralf_


I think I found a bug in the port eclipse.in file. I am testing it now with some changes. If you would like to try the change I am working on modify your /usr/local/bin/eclipse file with the following changes where I set the MOZILLA_FIVE_HOME variable. Then start eclipse with the changes and see if that works.

MOZILLA_FIVE_HOME=/usr/local/lib/mozilla
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH


Ralf Folkerts wrote:
David Sledge wrote:

Hi David,

thanks for your hint! I tried that (i.e. moved ~/.eclipse to ~/.old_eclipse, moved ~/workspace to ~/workspace.old, deinstalled eclipse and re-installed eclipse) however, I still don't get the "Internal Browser". On my Laptop, where I installed eclipse from the 3.2.1-Package, I get:

!SESSION 2006-11-22 19:58:59.138 -----------------------------------------------
eclipse.buildId=M20060921-0945
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=freebsd, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments: -os freebsd -ws gtk -arch x86 -data /home/ralf/workspace

!ENTRY org.eclipse.ui.browser 2 0 2006-11-22 19:59:42.585
!MESSAGE Internal browser is not available: No more handles (java.lang.UnsatisfiedLinkError: /home/ralf/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/80/1/.cp/libswt-mozilla-gtk-3235.so: Shared object "libxpcom.so" not found, required by "libswt-mozilla-gtk-3235.so")


On my amd64-System I compiled Eclipse from the Port with WITH_MOZILLA=mozilla. When I start eclipse there I get

!SESSION 2006-11-22 19:50:32.973 -----------------------------------------------
eclipse.buildId=M20060921-0945
java.version=1.5.0-p3
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=freebsd, ARCH=amd64, WS=gtk, NL=de_DE
Command-line arguments: -os freebsd -ws gtk -arch amd64 -data /home/ralf/workspace

!ENTRY org.eclipse.ui.browser 2 0 2006-11-22 19:50:53.688
!MESSAGE Internal browser is not available: XPCOM error -2142109695

Now, on amd64 I'll compile again, log the Output and check for Errors - however, I have no Idea re. the Laptop. I did install the Mozilla-Package and "pkgdb -F" doesn't show any unresolved dependencies :-(

Do you have an Idea for the "Package" Solution?

Cheers,
_ralf_

Deinstall eclipse, remove the /home/<user>/.eclipse directory and reinstall eclipse. A copy of the swt libraries gets placed in that directory. To get the newly compiled swt libraries you must first remove the old ones. Hope that helps.




Ralf Folkerts wrote:
Hi,

last weekend I updated my Laptop using Packages and thus got the new Eclipse 3.2.1 (btw: thanks to David for the Port!). Then I installed MyEclipse 5.0, "Online Updated" ME to 5.1 and then wanted to do some JSP-Programming.

Unfortunately, I get an SWT Error every Time I start the JSP Editor.

I searched thru the MyEclipse Config and disabled everything that seemed to be "native" (i.e. the "Linux Only" Firefox in Preview-Modes / Visual Designer).

However, I keep getting that error :-(

While trying to figure out the cause of the Problem I found that in the Eclipse's Preferences "General" / "Web Browser" the "Use internal Web Browser" RadioButton is disabled (i.e. I cannot select it).

The same is true on my amd64-Machine, where I upgraded Eclipse (from 3.1.2) using the port. I have no Idea wether this is the cause for the ME Exeptions or not, however.

Here's a Stack Trace I get in Eclipse's Error Log whenever I try to start the ME JSP-Editor:

!ENTRY org.eclipse.ui 4 0 2006-11-20 20:08:22.933
!MESSAGE No more handles (java.lang.UnsatisfiedLinkError: /home/ralf/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/80/1/.cp/libswt-mozilla-gtk-3235.so: Shared object "libxpcom.so" not found, required by "libswt-mozilla-gtk-3235.so")
!STACK 0
org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: /home/ralf/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/80/1/.cp/libswt-mozilla-gtk-3235.so: Shared object "libxpcom.so" not found, required by "libswt-mozilla-gtk-3235.so")
    at org.eclipse.swt.SWT.error(SWT.java:3400)
    at org.eclipse.swt.SWT.error(SWT.java:3297)
    at org.eclipse.swt.browser.Browser.<init>(Browser.java:168)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.createPlatformPreviewPage(WebDesignerMultiPageEditor.java:334) at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.createPages(WebDesignerMultiPageEditor.java:327) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528) at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520) at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:275) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139) at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:267) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:243) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:306) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:653) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3166) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2842) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.UnsatisfiedLinkError: /home/ralf/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/80/1/.cp/libswt-mozilla-gtk-3235.so: Shared object "libxpcom.so" not found, required by "libswt-mozilla-gtk-3235.so"
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1660)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
    at org.eclipse.swt.browser.Browser.<init>(Browser.java:153)
    ... 58 more



Does anyone have an Idea / hint??

MTIA
Cheers,
_ralf_
_______________________________________________
freebsd-eclipse@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-eclipse
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




--
\\\|/// \\ - - // ( @ @ ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~oOOo- (_) -oOOo~~~~~~~ Ralf Folkerts "Wohnzimmerrechenzentrum"
mailto:[EMAIL PROTECTED]
xmpp:[EMAIL PROTECTED]
Telefon: 07031 / 388170
Mobil  : 0172 / 3063589
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Oooo~~~~~~~
                                       oooO      (   )
                                       (   )      ) /
                                        \ (      (_/
                                         \_)


_______________________________________________
freebsd-eclipse@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-eclipse
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to