经过Proguard处理后无法识别的FX Toolkit类

时间:2019-04-25 13:28:47

标签: java javafx proguard obfuscation

我正在尝试使用Proguard混淆我的javafx应用程序。当我尝试运行新创建的jar时,Proguard完成其过程后,出现以下错误“无法识别的FX Toolkit类:com.sun.javafx.tk.quantum.QuantumToolkit”

我已经试图寻找可能缺少的库,并且包含了JavaFX应用程序所需的所有库。我正在为Java和Proguard 6.0.3运行jre8

java.lang.IllegalArgumentException: Unrecognized FX Toolkit class: com.sun.javafx.tk.quantum.QuantumToolkit
       at com.sun.javafx.tk.A.w(Unknown Source)
       at com.sun.javafx.application.e.a(Unknown Source)
       at com.sun.javafx.application.b.b(Unknown Source)
       at com.sun.javafx.application.b.b(Unknown Source)
       at com.sun.javafx.application.b.a(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
Exception in thread "main" java.lang.RuntimeException: No toolkit found
       at com.sun.javafx.tk.A.w(Unknown Source)
       at com.sun.javafx.application.e.a(Unknown Source)
       at com.sun.javafx.application.b.b(Unknown Source)
       at com.sun.javafx.application.b.b(Unknown Source)
       at com.sun.javafx.application.b.a(Unknown Source)
       at java.lang.Thread.run(Unknown Source)

我不知道我在这里缺少什么,我试图编辑配置文件,以免混淆Javafx类。

0 个答案:

没有答案