JWebbrwoser support in Linux(Fedora,centos)
Web Browser, Flash Player, HTML editor, Media player for Swing and SWT
Brought to you by:
chrriis
Hi Christopher,
I am very new to the linux and using JWebBrowser in windows without any issue. Now migrating the application to linux where JWebBrowser is not working. How to resolve the following exception in linux(Ex:fedora,centos) where the solution should be same for all flavours.
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
I tried the samplebrowserexample also, which got failed with the same error. I see the forums that XULRUNNER is needed but mozilla stopped it from 2015. Please help to understand and resolve the issue.
Thanks
Devi
Hi Devi,
I think that if you use a recent version of SWT and if a Webkit browser is installed, then that would be used.
But... I don't know the state of this support. Java client applications are less and less developed, so this project might be getting a bit obsolete.
To force the use of Webkit, you might have to set this system property:
nativeswing.webbrowser.runtime=webkit
The requirements for SWT to load Webkit are explained here:
https://www.eclipse.org/swt/faq.php#howusewebkit
Hope this helps,
-Christopher