- status: open --> open-invalid
This is for JavaGuard 1.0beta4.
The executable jar file's manifest contains a line that
specifies the Class with the main method to execute.
For example:
Old Manifest file:
----------------
Manifest-Version: 1.0
Main-Class: com.name.dept.project.pak1.MainClass
after the jar file has been obfuscated, the MainClass
will be renamed, however the manifest file still has
the incorrect (old) name of the executable.
New Manifest file:
------------------
Manifest-Version: 1.0
Created-By: JavaGuard v1.0beta4 Bytecode Obfuscator
Main-Class: com.name.dept.project.pak1.MainClass
Name: a/a/a/a/a/f$9.class
SHA-1-Digest: fqKAcFB8gvY50u2dlU7DciaDLDU=
Digest-Algorithms: SHA-1 MD5
MD5-Digest: umrVlci4+XXWPYsRSEEJqA==
...
Thus when trying to execute the jar file will result in
a java.lang.NoClassDefFoundError.
So bottom line: the manifest file's Main-Class field
has to be changed accordingly.
Thanks