Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT browser not working with XULRunner 1.8.x, 1.9.x, 3.6.x, 10.x downloaded from mozilla.org(SWT browser not working with XULRunner 1.8.x, 1.9.x, 3.6.x, 10.x downloaded from mozilla.org)
SWT browser not working with XULRunner 1.8.x, 1.9.x, 3.6.x, 10.x downloaded from mozilla.org [message #896363] |
Wed, 18 July 2012 08:02 |
Mohsen Saboorian Messages: 19 Registered: July 2009 |
Junior Member |
|
|
Hi,
I'm using latest SWT 4.2 with an application in which I want to bundle XULRunner in order to deliver end user a portable application (our users always complain about setting MOZILLA_FIVE_HOME or other browser related issues on Linux). For this, I downloaded XULRunner from mozilla.org (h++p://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/) and passed the following jvm options:
-Dorg.eclipse.swt.browser.XULRunnerPath=xulrunner (where xulrunner folder is available in my app)
-Dorg.eclipse.swt.browser.DefaultType=mozilla
Unfortunately I receive XPCOM error when I use any of 1.9, 3.6 and 10 xullrunners. When I remove the two options, it starts correctly as it finds a proper webkitgtk installation. This is fine, but I want it to work seamlessly on any Linux distribution even without webkitgtk.
My test platforms are Ubuntu 11.04 and 12.04, Sun JVM 1.7.03 32 bit, XULRunner 32bit 1.8.x, 1.9.x, 3.6.x, 10.x.
Thanks
Mohsen
[Updated on: Wed, 18 July 2012 08:07] Report message to a moderator
|
|
|
Re: SWT browser do not work with XULRunner 1.8.x, 1.9.x, 3.6.x, 10.x downloaded from mozilla.org [message #896498 is a reply to message #896363] |
Wed, 18 July 2012 14:19 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
It sounds like you're doing the right thing, though you do not have to
set the org.eclipse.swt.browser.DefaultType property if you don't
strongly care which of the native renderers gets used (WebKitGTK is
tried first, but if it's not available then the fallback to a
mozilla-based renderer happens automatically).
If you're getting an XPCOM error then it sounds like it's finding a
XULRunner. What does the error's stack look like? Does the snippet at
www.eclipse.org/swt/faq.php#printmozillapath work for you (set its
org.eclipse.swt.browser.XULRunnerPath value with System.setProperty(...))?
Grant
On 7/18/2012 4:02 AM, Mohsen Saboorian wrote:
> Hi,
> I'm using latest SWT 4.2 with an application in which I want to bundle
> XULRunner in order to deliver end user a portable application (our users
> always complain about setting MOZILLA_FIVE_HOME or other browser related
> issues on Linux). For this, I downloaded XULRunner from mozilla.org
> (h++p://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/) and passed
> the following jvm options:
> -Dorg.eclipse.swt.browser.XULRunnerPath=xulrunner (where xulrunner
> folder is available in my app)
> -Dorg.eclipse.swt.browser.DefaultType=mozilla
>
> Unfortunately I receive XPCOM error when I use any of 1.9, 3.6 and 10
> xullrunners. When I remove the two options, it starts correctly as it
> finds a proper webkitgtk installation. This is fine, but I want it to
> work seamlessly on any Linux distribution even without webkitgtk.
>
> My test platforms are Ubuntu 11.04 and 12.04, Sun JVM 1.7.03 32 bit,
> XULRunner 32bit 1.8.x, 1.9.x, 3.6.x, 10.x.
>
> Thanks
> Mohsen
|
|
| | |
Goto Forum:
Current Time: Fri Apr 19 04:07:07 GMT 2024
Powered by FUDForum. Page generated in 0.02016 seconds
|