圣天诺Sentinel LDK 7.8,对打包后项目中的jar文件进行壳加密。
运行后报错,error.log中如下:
2019-04-03 09:18:42 [ main:2 ] - [ ERROR ] main
java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.VerifyError: StackMapTable error: bad offset
Exception Details:
Location:
DTAtTPNelToesXnl.BB1IANbs1RYot0by(Ljavafx/stage/Stage;Lcom/cxbdapp/cadre/Main;)V @0: aload
Reason:
Invalid stackmap specification.
Current Frame:
bci: @1070
flags: { }
locals: { 'DTAtTPNelToesXnl', 'javafx/stage/Stage', 'com/cxbdapp/cadre/Main' }
stack: { 'java/lang/Exception' }
Bytecode:
0x0000000: 1902 3a00 2abb 0003 59b7 0004 b500 012a
0x0000010: bb00 0559 b700 06b5 0007 2ab4 0001 2bb8
0x0000020: 0217 2ab4 0001 120a 120b 0304 bd00 0c59
0x0000030: 03b2 000d 53b8 021b 572a b400 0112 0f12
0x0000040: 1003 04bd 000c 5903 b200 0d53 b802 1e57
0x0000050: 2ab4 0001 1211 1212 0304 bd00 0c59 03b2
0x0000060: 000d 53b8 0221 572a b400 0112 1312 1403
0x0000070: 04bd 000c 5903 b200 0d53 b802 2457 2ab4
0x0000080: 0001 1215 1216 0304 bd00 0c59 03b2 000d
0x0000090: 53b8 0227 572a b400 0112 1712 1803 04bd
0x00000a0: 000c 5903 b200 0d53 b802 2a57 2ab4 0001
0x00000b0: 1219 121a 0304 bd00 0c59 03b2 000d 53b8
0x00000c0: 022d 572a b400 0112 1b12 1c03 04bd 000c
0x00000d0: 5903 b200 0d53 b802 3057 2ab4 0001 121d
0x00000e0: 121e 0304 bd00 0c59 03b2 000d 53b8 0233
0x00000f0: 572a b400 0112 1f12 2003 04bd 000c 5903
0x0000100: b200 0d53 b802 3657 2ab4 0001 1221 1222
0x0000110: 0304 bd00 0c59 03b2 000d 53b8 0239 572a
0x0000120: b400 0112 2312 2403 04bd 000c 5903 b200
0x0000130: 0d53 b802 3c57 2ab4 0001 1225 1226 0304
0x0000140: bd00 0c59 03b2 000d 53b8 023f 572a b400
0x0000150: 0112 2712 2803 04bd 000c 5903 b200 0d53
0x0000160: b802 4257 2ab4 0001 1229 122a 0304 bd00
0x0000170: 0c59 03b2 000d 53b8 0245 572a b400 0112
0x0000180: 2b12 2c03 04bd 000c 5903 b200 0d53 b802
0x0000190: 4857 2ab4 0001 122d 122e 0304 bd00 0c59
0x00001a0: 03b2 000d 53b8 024b 572a b400 0112 2f12
0x00001b0: 3003 04bd 000c 5903 b200 0d53 b802 4e57
0x00001c0: 2ab4 0001 1231 1232 0304 bd00 0c59 03b2
0x00001d0: 000d 53b8 0251 572a b400 0112 3312 3403
0x00001e0: 04bd 000c 5903 b200 0d53 b802 5457 2ab4
0x00001f0: 0001 1235 1236 0304 bd00 0c59 03b2 000d
0x0000200: 53b8 0257 572a b400 0112 3712 3803 04bd
0x0000210: 000c 5903 b200 0d53 b802 5a57 2ab4 0001
0x0000220: 1239 123a 0304 bd00 0c59 03b2 000d 53b8
0x0000230: 025d 572a b400 0112 3b12 3c03 04bd 000c
0x0000240: 5903 b200 0d53 b802 6057 2ab4 0001 123d
0x0000250: 123e 0304 bd00 0c59 03b2 000d 53b8 0263
0x0000260: 572a b400 0712 3f12 40b8 0267 572a b400
0x0000270: 0712 4212 43b8 026a 572a b400 0712 4412
0x0000280: 45b8 026d 572a b400 0712 4612 47b8 0270
0x0000290: 572a b400 0712 4812 49b8 0273 572a b400
0x00002a0: 0712 4a12 4bb8 0276 572a b400 0712 4c12
0x00002b0: 4db8 0279 572a b400 0712 4e12 4fb8 027c
0x00002c0: 572a b400 0712 5012 51b8 027f 572a b400
0x00002d0: 0712 5212 53b8 0282 572a b400 0712 5412
0x00002e0: 55b8 0285 572a b400 0712 5612 57b8 0288
0x00002f0: 572a b400 0712 5812 59b8 028b 572a b400
0x0000300: 0712 5a12 5bb8 028e 572a b400 0712 5c12
0x0000310: 5db8 0291 572a b400 0712 5e12 5fb8 0294
0x0000320: 572a b400 0712 6012 61b8 0297 572a b400
0x0000330: 0712 6212 63b8 029a 572a b400 0712 6412
0x0000340: 65b8 029d 572a b400 0712 6612 67b8 02a0
0x0000350: 572a b400 0712 6812 69b8 02a3 572a b400
0x0000360: 0712 6a12 6bb8 02a6 572a b400 0712 6c12
0x0000370: 6db8 02a9 572a b400 0712 6e12 6fb8 02ac
0x0000380: 572a b400 0712 7012 71b8 02af 572a b400
0x0000390: 0712 7212 73b8 02b2 572a b400 0712 7412
0x00003a0: 75b8 02b5 572a b400 0712 7612 77b8 02b8
0x00003b0: 572a b400 0712 7812 79b8 02bb 572a b400
0x00003c0: 0712 3112 7ab8 02be 572a b400 0712 7b12
0x00003d0: 7cb8 02c1 572a b400 0712 7d12 7eb8 02c4
0x00003e0: 572a b400 0712 7f12 80b8 02c7 572a b400
0x00003f0: 0712 8112 82b8 02ca 572a b400 0712 8312
0x0000400: 84b8 02cd 572a b400 0157 120a b800 8557
0x0000410: 2ab4 0007 1286 1287 b802 d057 1213 b800
0x0000420: 884d 2cbb 0089 592a 2cb7 008a b802 d4a7
0x0000430: 002d 4db2 008d 128e 2cb8 02d8 bb00 9059
0x0000440: b200 91b7 0092 4e2d 1293 b802 dc2d 1295
0x0000450: b802 df2d b802 e357 2cb8 02e7 b1
Exception Handler Table:
bci [4, 1071] => handler: 1074
Stackmap Table:
same_locals_1_stack_item_extended(@1070,Object[#322])
same_frame(@1112)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at com.aladdin.nemesis.d.do(pd:12)
at com.aladdin.nemesis.e.b.do(s:502)
at com.aladdin.nemesis.e.a.do(r:122)
at com.aladdin.nemesis.DGC_F480A00F1508C428390CF962D5676A3A783CC96590E65AF31946DC4F.aldn_1989undnochda_mwtbdltr(qd:149)
at com.cxbdapp.cadre.Main.start(Main.java)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
... 1 more
里面的Caused by: java.lang.VerifyError: StackMapTable error: bad offset,
百度后说是编译环境不一致,有哪位大神知道圣天诺Sentinel LDK 7.8壳加密的编译环境是什么?例如jdk是什么版本之类的
已转用深思数盾