Creating the SWT.MOZILLA browser for Windows 64 bit and SWT 4.3

I am trying to create a SWT Browser widget of type SWT.MOZILLA under windows 8 64Bit with SWT 4.3 64Bit.

According to this , SWT 4.3 must support 64 bit version on XULRunner 10.x or 24.x

So, I downloaded both versions 10.x and 24.x 64 from here and unpacked the files under c:\xulrunner10and, c:\xulrunner24respectively.

If I run a java application pointing to xulrunner10 (using the VM argument -Dorg.eclipse.swt.browser.XULRunnerPath=C:\xulrunner10), it works, however, if I try to use xulrunner24 (using the VM argument -Dorg.eclipse.swt.browser.XULRunnerPath=C:\xulrunner24), I get the following error:

Exception in thread "main" org.eclipse.swt.SWTError: XPCOM error 0x80004005
    at org.eclipse.swt.browser.Mozilla.error(Unknown Source)
    at org.eclipse.swt.browser.Mozilla.initXULRunner(Unknown Source)
    at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
    at org.eclipse.swt.browser.Browser.<init>(Unknown Source)

I also noticed that I get the same error if I point to a non-existing directory, however there is a folder c: \ xulrunner24 and contains all the files, as well as xulrunner.exe.

xulrunner 24.x 64bit swt 4.3?

+3
3

! SWT wiki: xulrunner 24.x SWT 4.4. swt-4.4M5, xurlrunner 24 64bit

+4
0

, , , , (http://wiki.mozilla-x86-64.com/Download), .

With a 64-bit 4.3 SWT, I was able to fix this exception using XULRunner version 1.9.2.25. I originally found the download from here: https://osdn.net/projects/sfnet_runawfe/downloads/SRC%20and%20BIN%20files/extras/xulrunner-1.9.2.25-win64.zip/

However, I also re-posted it as xulrunner-1.9.2.25.en-US.win64.zip.

Full explanation posted in my answer here: fooobar.com/questions/1147826 / ...

0
source

All Articles