流程与之前流传的6.x版本破解流程一样,首先在自己项目中创建META-INF\teamdev.licenses
并写入以下内容:在SpringBoot项目中licenses文件的完整路径为:src\main\resources\META-INF\teamdev.licenses
Product: JxBrowser
Version: 6.x
Licensed to: Kagura.me
License type: Enterprise
License info: JxBrowser License
Expiration date: 01-01-9999
Support expiration date: NO SUPPORT
Generation date: 01-01-1970
Platforms: win32/x86;win32/x64;mac/x86;mac/x64;linux/x86;linux/x64
Company name: TeamDev Ltd.
SigB: 1
SigA: 1
JxBrowser v6.24.3官方下载地址:https://storage.googleapis.com/cloud.teamdev.com/downloads/jxbrowser/6.24.3/jxbrowser-6.24.3-cross-desktop-win_mac_linux.zip
然后在调用之前加入如下代码即可:
import com.teamdev.jxbrowser.chromium.Browser;
import com.teamdev.jxbrowser.chromium.BrowserCore;
import com.teamdev.jxbrowser.chromium.bb;
import com.teamdev.jxbrowser.chromium.internal.Environment;
import com.teamdev.jxbrowser.chromium.javafx.BrowserView;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.math.BigInteger;
...
static {
try {
Field e = be.class.getDeclaredField("e");
e.setAccessible(true);
Field f = be.class.getDeclaredField("f");
f.setAccessible(true);
Field modifersField = Field.class.getDeclaredField("modifiers");
modifersField.setAccessible(true);
modifersField.setInt(e, e.getModifiers() & ~Modifier.FINAL);
modifersField.setInt(f, f.getModifiers() & ~Modifier.FINAL);
e.set(null, new BigInteger("1"));
f.set(null, new BigInteger("1"));
modifersField.setAccessible(false);
} catch (Exception e1) {
e1.printStackTrace();
}
}
未经允许不得转载:鹞之神乐 » JxBrowser v6.24.3 破解