Hi All,
I have build a console apps using java and library i use are mysql-connector-j-8.0.31.jar and org.eclipse.paho.client.mqttv3-1.2.5.jar
and using this in configuration
-injars D:\JarTest\Test_.jar
-outjars D:\JarTest\Test_R1.jar
-libraryjars ‘C:\jdk1.8\jre\lib\rt.jar’
-dontshrink
-dontoptimize
-obfuscationdictionary D:\JarTest\ProGuardDic.txt
-classobfuscationdictionary D:\JarTest\ProGuardDic.txt
-packageobfuscationdictionary D:\JarTest\ProGuardDic.txt
-dontpreverify
-dontnote
-dontwarn
-ignorewarnings
-keep class com.mysql.* { ; }
-keep class java.sql. { ; }
-keep class javax.sql. { ; }
-keep class org.eclipse.paho.client.mqttv3. { *; }
-keep class TESTLM { *; }
-keepclassmembers class TESTLM { *; }
But when I run the jar I got this error
Exception in thread “main” java.lang.VerifyError: Expecting a stackmap frame at branch target 21
Exception Details:
Location:
aceThatIvefoundinYouLordIvecometoknowTheweaknessesIseeinmeWillbestrippedawayBythepowerofYourloveHoldmecloseLetYourlovesurroundmeBringmenearD.aknessesIseeinmeWillbestrippedawayBythepowerofYourloveHoldmecloseLetYourlovesurroundmeBringmenearDrawmetoYoursideAndasIwaitIllriseupliketheeagleAndIwillsoarwithYouYourSpiritleadsmeonInthepowerofYourl()V @0: getstatic
Reason:
Expected stackmap frame at this location.
Bytecode:
0x0000000: b200 5112 0905 b600 8fb2 0051 120a 05b6
0x0000010: 008f a700 204b b200 5cbb 0036 59b7 0078
0x0000020: 121a b600 7b2a b600 94b6 007b b600 7cb6
0x0000030: 006e b1
Exception Handler Table:
bci [0, 18] => handler: 21
at TESTLM.main(Unknown Source)