Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333556 - SWTError while creating swt Browser on Ubuntu 64 bit machine
Summary: SWTError while creating swt Browser on Ubuntu 64 bit machine
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 05:53 EST by Vikas Chandra CLA
Modified: 2011-04-14 15:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Chandra CLA 2011-01-05 05:53:34 EST
Build Identifier: Eclipse 3.6.1 : M20101124-0800

1) create a browser using browser = new Browser(parent, SWT.NONE);

It will give 
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-addons'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
	/home/abc/.metadata/.plugins/org.eclipse.pde.core/New_configuration/org.eclipse.osgi/bundles/2018/1/.cp/libswt-mozilla-gtk-3657.so 
(libxpcom.so: cannot open shared object file: No such file or directory)
	swt-mozilla-gtk (Not found in java.library.path)
	/tmp/swtlib-32/libswt-mozilla-gtk-3657.so (libxpcom.so: cannot open shared object file: No such file or directory)
	/tmp/swtlib-32/libswt-mozilla-gtk.so (/tmp/swtlib-32/liblibswt-mozilla-gtk.so.so: cannot open shared object file: No such file or directory)
)
	at org.eclipse.swt.SWT.error(SWT.java:4109)
	at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1770)
	at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:656)

Reproducible: Always

Steps to Reproduce:
1.Create a browser using browser = new Browser(parent, SWT.NONE);
2. SWTError occurs
Comment 1 Szymon Ptaszkiewicz CLA 2011-01-07 11:45:43 EST
Looks like a dupe of bug 322912.
Comment 2 Szymon Ptaszkiewicz CLA 2011-01-07 12:22:11 EST
Vikas, please try adding -D switch as described in bug 322912 comment 8 to check if that helps in your case.
Comment 3 Grant Gayed CLA 2011-01-07 14:34:50 EST
Seeing MOZILLA_FIVE_HOME set to /usr/lib/xulrunner-addons makes me think that this may be fixed by the fix for bug 319123.  Can you see if a recent 3.6.2 build like http://download.eclipse.org/eclipse/downloads/drops/M20110105-0951/download.php?dropFile=eclipse-SDK-M20110105-0951-linux-gtk-x86_64.tar.gz works better for you?
Comment 4 Grant Gayed CLA 2011-04-14 15:22:02 EDT
Timed out, closing.  I'm quite sure that the fix for bug 319123 would ensure that MOZILLA_FIVE_HOME gets set to a valid path.

If you see this problem with Eclipse 3.6.2 or later then please reopen this report.