Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Bundling web browser with RCP app
Bundling web browser with RCP app [message #1008448] Tue, 12 February 2013 14:31 Go to next message
Anders S is currently offline Anders SFriend
Messages: 29
Registered: February 2011
Junior Member
I have a RCP application which utilizes the SWT Browser. I'm currently developing on Linux and I'm using libwebkitgtk as the browser. This works fine, but I want to target Windows as well. According to the SWT FAQ one can only use WebKit if Safari is installed, or an old version of Firefox/XULRunner. I can probably live with a legacy browser, but I dont want the user to have the hassle of installing a browser or other software to make it work.

I have a few questions relating to this:
Is it possible to bundle my RCP app with a proper version of FF/XULRunner/WebKit?
If so, how do I do this?
I think I read somewhere that I can get the 10.x series of XULRunner working using XPCOM directly, is this so?
Re: Bundling web browser with RCP app [message #1010817 is a reply to message #1008448] Mon, 18 February 2013 09:37 Go to previous messageGo to next message
Thorsten Meinl is currently offline Thorsten MeinlFriend
Messages: 85
Registered: July 2009
Member
AFAIK, the SWT browser uses IE on Windows by default, so there is no
(direct) need to bundle a browser. It may look/behave different than
Webkit, though.

Am 12.02.2013 15:31, schrieb navlelo Mising name:
> I have a RCP application which utilizes the SWT Browser. I'm currently
> developing on Linux and I'm using libwebkitgtk as the browser. This
> works fine, but I want to target Windows as well. According to the SWT
> FAQ one can only use WebKit if Safari is installed, or an old version of
> Firefox/XULRunner. I can probably live with a legacy browser, but I dont
> want the user to have the hassle of installing a browser or other
> software to make it work.
> I have a few questions relating to this:
> Is it possible to bundle my RCP app with a proper version of
> FF/XULRunner/WebKit?
> If so, how do I do this?
> I think I read somewhere that I can get the 10.x series of XULRunner
> working using XPCOM directly, is this so?
Re: Bundling web browser with RCP app [message #1015471 is a reply to message #1008448] Thu, 28 February 2013 16:29 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
If you don't really care which native browser renderer is used (webkit,
mozilla, etc.), then create all of your Browsers with style SWT.NONE,
and users will not need to install anything on any platforms, the
OS-provided renderer will always be used.

If you want a consistent native renderer across the platforms then
XULRunner is currently your only choice, in which case you would ship a
XULRunner binary on every supported platform, point at them at runtime
as described in http://www.eclipse.org/swt/faq.php#specifyxulrunner, and
set the org.eclipse.swt.browser.DefaultType property as described in
http://www.eclipse.org/swt/faq.php#browserspecifydefault .

Grant


On 2/12/2013 9:31 AM, navlelo Mising name wrote:
> I have a RCP application which utilizes the SWT Browser. I'm currently
> developing on Linux and I'm using libwebkitgtk as the browser. This
> works fine, but I want to target Windows as well. According to the SWT
> FAQ one can only use WebKit if Safari is installed, or an old version of
> Firefox/XULRunner. I can probably live with a legacy browser, but I dont
> want the user to have the hassle of installing a browser or other
> software to make it work.
> I have a few questions relating to this:
> Is it possible to bundle my RCP app with a proper version of
> FF/XULRunner/WebKit?
> If so, how do I do this?
> I think I read somewhere that I can get the 10.x series of XULRunner
> working using XPCOM directly, is this so?
Re: Bundling web browser with RCP app [message #1237879 is a reply to message #1015471] Thu, 30 January 2014 21:06 Go to previous messageGo to next message
Cecile Kim is currently offline Cecile KimFriend
Messages: 3
Registered: November 2013
Junior Member
Hi, I am having trouble instantiating a mozilla browser on my windows 7 64-bit machine. I tried using Eclipse kepler 4.3.1 with xulrunner 10.0.x, as well as Eclipse luna 4.4.0 with xulrunner 10.0.x & xulrunner 24. I get the same XPCOM error resulting from the same location - when stepping through the debugger, this error occurs in the Mozilla class:

int rc = XPCOM.XPCOMGlueStartup (path);

rc is 0x80004005 (or -2147467259).

I followed the guidance on the SWT FAQ page.

Windows (x86_64): (@since 4.3) Any XULRunner release with version 1.9.2.x - 3.6.x, 10.x or 24.x, and the Visual C++ 2010 runtime must be installed .

Been searching everywhere for a solution and tried pretty much everything I could find. I also tried downloading SWT 4.4 separately and including it as a dependency in my project, suggested by someone at this stackoverflow post (can't post link cuz I'm a newbie):

"Got it! It's an error on SWT wiki: xulrunner 24.x requires SWT 4.4. I've installed swt-4.4M5 and now I can embed xurlrunner 24 64bit"


but I'm not sure I did that correctly. Any help/advice would be much appreciated.

Thank you.

Re: Bundling web browser with RCP app [message #1237880 is a reply to message #1237879] Thu, 30 January 2014 21:09 Go to previous message
Cecile Kim is currently offline Cecile KimFriend
Messages: 3
Registered: November 2013
Junior Member
Btw, the XULRunnerPath is set: -Dorg.eclipse.swt.browser.XULRunnerPath=[absolute path to xulrunner]\xulrunner24win
Previous Topic:Problems with folding text in viewpart
Next Topic:Read file in fragment in junit test
Goto Forum:
  


Current Time: Fri Dec 19 02:23:47 GMT 2014

Powered by FUDForum. Page generated in 0.10738 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software