|Error with SWT.MOZILLA browser on Windows [message #1722928]
||Wed, 10 February 2016 10:47
| Peter Pinnau
Registered: October 2015
EDIT: I fixed the issue by upgrading to 4.6. integration build. The described problem comes with SWT version 4.527 which is shipped with current stable eclipse mars build.|
I have problems embedding org.eclipse.swt.Browser with the SWT.MOZILLA flag on windows. It is an RCP product exported with the "Eclipse product export wizard". My development system is Ubuntu and I have no problems there.
The log reports the following trace:
org.eclipse.swt.SWTError: Unknown error
The browser widget is not created.
Java 1.8.0_40 and also recent 1.8.0_72
Windows: testes with XP, Windows 8 and Windows 10
I did some further testing and finally found a workaround. I implemented a minimal SWT-application that embeds the browser. Pure SWT, no other dependencies.
The mini application works and after started it once also the browser in the Eclipse product works and the error is gone.
I found out that with the first start of my mini app the follwing folder is created:
When I delete that folder the error comes back again. Unfortunately that folder is not created when starting the product.
The reason seems to be the SWT version:
Eclipse 4.5.1 ships SWT 4.527
When using 4.527 in my mini application I get the error and the folder in APPDATA is not created.
Solved with SWT version from 4.6. integration build.
[Updated on: Wed, 10 February 2016 15:18]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01835 seconds