Today, when you are doing something, you need to make an integrated browser client, using the Java SWT to do the browser. The first time directly using the default browser kernel, the results were migrated to another machine after the discovery of a problem: the kernel is IE, many machines have not upgraded IE, There is a problem with JS and CSS compatibility. My colleagues from the operations department asked me if there was any other way I could use it without upgrading ie. I studied, using Swt.mozilla as the browser kernel. Some of these pits are recorded.
1, the use of the Mozilla kernel needs to install XULRunner, the currently supported XULRunner is 10.x,24.x,31.x, the other is not supported. 64-bit for: wiki.mozilla-x86-64.com/download. After download, do not press.
2, add in the code:
System.setproperty ("Org.eclipse.swt.browser.XULRunnerPath", "Path/to/your/folder");
3,swt4.5 has a bug, after starting the error: Swterror:unknown error. Resolve after upgrading SWT4.6.
This article is from the "Peters" blog, make sure to keep this source http://peterkwok.blog.51cto.com/272862/1790012
The support of the Mozilla under SWT