当我试图混淆我的项目时,我收到了这些警告。我将所有必需的 jar 添加到类路径中。我正在使用 java 18。我也尝试保留库: -keep 类 com.formdev.flatlaf.** { *; }
但我仍然收到这些警告,而且我不知道如何解决它们:
Warning: com.formdev.flatlaf.FlatLaf: can't find referenced method 'java.lang.Object invoke(javax.swing.JComponent)' in library class java.lang.invoke.MethodHandle Warning: com.formdev.flatlaf.ui.FlatPopupFactory: can't find referenced method 'javax.swing.Popup invoke(com.formdev.flatlaf.ui.FlatPopupFactory,java.awt.Component,java.awt.Component,int,int,boolean)' in library class java.lang.invoke.MethodHandle Warning: com.formdev.flatlaf.ui.FlatPopupFactory: can't find referenced method 'javax.swing.Popup invoke(com.formdev.flatlaf.ui.FlatPopupFactory,java.awt.Component,java.awt.Component,int,int,int)' in library class java.lang.invoke.MethodHandle Warning: com.formdev.flatlaf.ui.FlatStylingSupport: can't find referenced method 'java.lang.Object invoke(java.lang.Object)' in library class java.lang.invoke.MethodHandle Warning: com.formdev.flatlaf.ui.FlatStylingSupport: can't find referenced method 'void invoke(java.lang.Object,java.lang.Object)' in library class java.lang.invoke.MethodHandle Warning: com.formdev.flatlaf.util.JavaCompatibility: c
您的文字an't find referenced method 'void invoke(javax.swing.JComponent,java.awt.Graphics2D,java.lang.String,int,float,float)' in library class java.lang.invoke.MethodHandle Warning: com.formdev.flatlaf.util.JavaCompatibility: can't find referenced method 'void invoke(javax.swing.JComponent,java.awt.Graphics,java.lang.String,int,int,int)' in library class java.lang.invoke.MethodHandle Warning: com.formdev.flatlaf.util.JavaCompatibility: can't find referenced method 'java.lang.String invoke(javax.swing.JComponent,java.awt.FontMetrics,java.lang.String,int)' in library class java.lang.invoke.MethodHandle
感谢任何试图提供帮助的人,非常感谢。
忽略警告也没有帮助。然后我会在尝试运行我的 jar 时收到错误。