帆软finereport报表设计器内部使用了jxbrowser 7.22
版本,然后把key直接放在环境变量,试了下确实可以用,虽然只能用7.22
版本,emmmmm…
System.setProperty("jxbrowser.license.key", "1BNDIEOFAZ1Z8R8VNNG4W07HLC9173JJW3RT0P2G9Y28L9YFFIWDBRFNFLFDQBKXAHO9ZE");
// OR
Engine engine = Engine.newInstance(EngineOptions.newBuilder(OFF_SCREEN)
.licenseKey("1BNDIEOFAZ1Z8R8VNNG4W07HLC9173JJW3RT0P2G9Y28L9YFFIWDBRFNFLFDQBKXAHO9ZE")
.build());
Browser browser = engine.newBrowser();
browser.navigation().loadUrl("https://www.kagura.me/dev/20230526012047.html");