Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here.(注意:本文中的建议仅适用于JxBrowser6,JxBrowser7相应文章请点击这里。)


Starting with JxBrowser 6.17, Chromium sandbox support for Windows was added. By default, Sandbox is disabled to save backward compatibility with the previous versions. To enable Sandbox set the "jxbrowser.chromium.sandbox" System Property to true before you create a first Browser instance. For example:(从JxBrowser 6.17开始,添加了Windows的Chromium沙箱支持。默认情况下,禁用沙盒以保存与先前版本的向后兼容性。要启用沙盒,请在创建第一个浏览器实例之前将“ jxbrowser.chromium.sandbox”系统属性设置为true。例如:)

System.setProperty("jxbrowser.chromium.sandbox", "true");
Browser browser = new Browser();

Linux and macOS(Linux和macOS)

Currently, Sandbox is supported on Windows platform only.(当前,仅Windows平台支持沙盒。)