我尝试使用proguard-4.2混淆.jar,但出现以下错误。
ProGuard 4.2版
阅读程序罐
[C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\IntegraA_v1.1.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\axis.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\jaxrpc.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\dom4j-1.6.1.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\java-json.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\wss4j-1.5.1.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\jaxen-1.1-beta-6.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\commons-logging.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\commons-discovery-0.2.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\wsdl4j.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\xmlsec-1.4.3.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\xalan-2.7.0.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\commons-codec-1.9.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\commons-io-2.4.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\cxf-rt-ws-addr-2.1.3.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\cxf-rt-ws-security-2.4.0.jar]
Reading library jar [C:\Users\gonzalo.lasarte\Documents\Desarrollos\JARS Y WARS\Ofuscate\proguard-4.2.jar\lib\cxf-api-2.2.3.jar]
Warning: es.sag.autentica.XMLReader.XMLReader: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.afirma.validateSign.utils.XMLRequestConstructor: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.utils.IntegraAUtility: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.XMLValidate.XMLValidate: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.objects.ResponseValidateSignObject: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.staticdata.StaticData: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.helpers.ConfigureAfirmaConnection: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.helpers.LogHelper: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.afirma.validateSign.utils.XMLAFirmaReader: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.afirma.validateSign.utils.UtilXML: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.afirma.RequestConstructor: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.exceptions.AfirmaParamsNoDefinedException: can't find superclass or interface java.lang.Exception
Warning: es.sag.autentica.afirma.validateSign.Sign: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.objects.XMLResponseObject: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.afirma.staticdata.AFirmaStaticData: can't find superclass or interface java.lang.Object
Warning: es.sag.autentica.XMLValidate.XMLValidate: can't find referenced method 'void printStackTrace()' in class javax.xml.rpc.ServiceException
Warning: es.sag.autentica.afirma.RequestConstructor: can't find referenced method 'java.lang.String getMessage()' in class org.apache.axis.AxisFault
Warning: there were 15 unresolved references to superclasses or interfaces.
You may need to specify additional library jars (using '-libraryjars'),
or perhaps the '-dontskipnonpubliclibraryclasses' option.
警告:有2个未解决的对程序类成员的引用。
您的输入类似乎不一致。
您可能需要重新编译它们,然后重试。
或者,您可能必须指定选项
“ -dontskipnonpubliclibraryclasses”和/或
“ -dontskipnonpubliclibraryclassmembers”。
错误:请首先更正以上警告。
我的proguardConfig.pro
-keep org.apache.http。**类
-keep接口org.apache.http。**
-dontwarn org.apache。**
-injars IntegraA_v1.1.jar
-outjars IntegraA_v1.1Obf.jar
-libraryjars /lib/axis.jar
-libraryjars /lib/jaxrpc.jar
-libraryjars /lib/dom4j-1.6.1.jar
-libraryjars /lib/java-json.jar
-libraryjars /lib/wss4j-1.5.1.jar
-libraryjars /lib/jaxen-1.1-beta-6.jar
-libraryjars /lib/commons-logging.jar
-libraryjars /lib/commons-discovery-0.2.jar
-libraryjars /lib/wsdl4j.jar
-libraryjars /lib/xmlsec-1.4.3.jar
-libraryjars /lib/xalan-2.7.0.jar
-libraryjars /lib/commons-codec-1.9.jar
-libraryjars /lib/commons-io-2.4.jar
-libraryjars /lib/cxf-rt-ws-addr-2.1.3.jar
-libraryjars /lib/cxf-rt-ws-security-2.4.0.jar
-libraryjars /lib/cxf-api-2.2.3.jar
谢谢!
最佳答案
添加-libraryjars /lib/rt.jar
需要了解运行时类-查看示例:https://www.guardsquare.com/en/proguard/manual/examples#application