JxBrowser v6.22.1/6.22.2 破解

注:此代码同样适用于v6.22.2版本

流程与之前流传的6.x版本破解流程一样,首先在自己项目中创建META-INF\teamdev.licenses并写入以下内容:在SpringBoot项目中licenses文件的完整路径为:src\main\resources\META-INF\teamdev.licenses,JxBrowser v6.22.1官方下载地址:https://storage.googleapis.com/cloud.teamdev.com/downloads/jxbrowser/6.22.1/jxbrowser-6.22.1-cross-desktop-win_mac_linux.zip

[code lang=”xml” title=”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 [/code]

然后在调用之前加入如下代码即可:

//需要的import
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 = bb.class.getDeclaredField("e");
            e.setAccessible(true);
            Field f = bb.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();
        }
    }

完整SpringBoot项目结构如下图:

未经允许不得转载:鹞之神乐 » JxBrowser v6.22.1/6.22.2 破解

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏