hi,
the d2j-jar-remap command is intended to de-obfuscate a jar.
de-obfuscate: everything is java world are opensource. and there are a lot of java decompilers. Shipping Java program directly is not safe. To protect the program, obfuscater like Proguard is used to prevent from reverse engineer.
Proguard rename the package/class/method/field names to a meaningless names like 'a', 'b', 'c'. which is hard to learn the program logical from names.
But still, we need reverse engineer the Java program, we have to de-obfuscate the program. the most simple way is to rename the meaningless names to a meaning name. For example, rename a class named 'a' to 'Class_a', we can distinguish with a field that have a same name 'a'
there is an out-of-dated document about the command.
the command d2j-jar-remap is removed in the last dex2jar, because i have found the Proguard can also do the job.
d2j-init-deobf is similar with the proguard is argument '-printmapping'
d2j-jar-remap is similar with the Proguard's argument '-applymapping'
BR,
b0b