The support of the Mozilla under SWT

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.