开发者

Problem using Retroguard to obfuscate swt application

I was trying to obfuscate SWT开发者_如何转开发 code using Retroguard, but after obfuscation, I can't start the jar it has created. Please advise. Thanks.

C:\Documents and Settings\zzz\My Documents>java -jar retroguard.jar swt-orig.j
ar

C:\Documents and Settings\zzz\My Documents>java -jar out.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.eclipse.swt.inter
nal.win32.OS.GetVersionExW(Lorg/eclipse/swt/internal/win32/ar;)Z
        at org.eclipse.swt.internal.win32.OS.GetVersionExW(Native Method)
        at org.eclipse.swt.internal.win32.OS.<clinit>(Unknown Source)
        at i.z.<clinit>(Unknown Source)
        at Main.main(Unknown Source)


Looks like a problem with the DLL containing SWT native methods. Was it packed into swt-orig.jar? Perhaps Retroguard removed or altered it?

You may also wish to read about the limitations of obfuscation and about alternative ways to protect your code in my article Protect Your Java Code - Through Obfuscators And Beyond.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜