Hello Zaheer,
2006/1/27, Zaheer Bawar <bz...@ya...>:
> I have been trying to make the JODE Obfuscator work,
> but failed again and agian.
>
> Jode (c) 1998-2001 Jochen Hoenicke <jo...@gn...>
> [...]
> Writing new classes
> Can't write zip file: obfuscated.zip
> java.util.zip.ZipException: ZIP file must have at least one entry
This error means that the load rule is not correct and it does
not load any classes.
> This is where my java.jar file is =3D=3D> C:\JODEexample
> Structure of java.jar =3D>
> java.jar -> java(folder)->file(folder) ->
> test.java
Jode has no compiler built in. It reads class files, not java files. You s=
hould
compile the project before you invoke the obfuscator.
Also note that the directory must reflect the package structure. So test.c=
lass
should only be in java/file if it is in package java.file. However,
the package java
is reserved for Sun, so you should put it in a different package. I
strongly encourage
the use of packages, I am not sure whether Jode works for classes that
are not part of
any package.
> Here is the contents of the .jos file:
>
> classpath =3D "C:\\Program
> Files\\Java\\jre1.5.0_06\\lib\\rt.jar","C:\\JODEexample"
> dest =3D "obfuscated.zip"
> revtable =3D "translat.tbl"
> strip =3D "unreach","lvt","inner"
> load =3D new WildCard { value =3D "java.classes*" },
> new WildCard { value =3D "java.file" }
You should not use the package "java" for your own files.
Regards,
Jochen
--
Jochen Hoenicke, University of Oldenburg, 26111 Oldenburg, Germany
Email: hoe...@in... Tel: +49 441 798 3124
|