Re: [Jode-users] Jode
Brought to you by:
hoenicke
|
From: Jochen H. <hoe...@gm...> - 2010-10-14 11:55:41
|
2010/10/14 Me Myself and I <sta...@li...>:
> #I am attempting to test Jode by getting it to do something
> #as obfuscate one Java Class with its main method.
>
> #I have examined and edited the example script "myproject.pos",
> #and am finding that I am apprently getting a silent error.
>
> #Please, can someone examine my .pos code below, and tell me what I should
> do,
> #in the .pos file and at the prompt (WINXP_SP3)?
> #(Where do I specify the .class or .jar/war/ear to be obfuscated just to
> start with?
The classpath should include the rt.jar file (usually in
jre/lib/rt.jar) and the jar file that contains the class to obfuscate
(or alternatively the base directory where the class files are).
In case that you want to obfuscate a single class file, the parameter
load should be set to the full-qualified name of the class (if it is
not in a package, it is just the class name without .class ending).
With load you tell the obfuscator which packages or classes you want
to include in the obfuscated jar file. So it should normally be the
base-package where all your classes and sub-packages are in.
preserve should be set to the main method
("packagename.Classname.main.*", or
"packagename.Classname.main.([Ljava/lang/String;]V)"). This prevents
the method main and the class itself from being renamed and marks the
main method and everything called from it as reachable.
I haven't tried my obfuscator for a long time, and I cannot guarantee
that it works with recent java version, but you can try it. It
certainly does not know about generics; I hope it just strips all the
generics information, but if you are unlucky, it will just preserve
them making deobfuscation easier.
Regards,
Jochen
|