Sign in to follow this  
Moose6912

Error obfuscating

Recommended Posts

Moose6912    122
I have the source code for a small game for the Nokia s40 which i got from my friend.I created a new project in WTK 2 and then copied the res and src files over.Building the files initially went ok.But when i tried to use Proguard to obfuscate.I had an error "Error preverifying class h VERIFIER ERROR h.<init>(II)V: Expecting to find integer on stack com.sun.kvem.ktools.ExecutionException: Preverifier returned 1 Build failed com.sun.kvem.midletsuite.InvalidJadException: Reason = 31 The jar size value in the Application Descriptor does not match the real jar file size. " Then i tried to build the files again and received this error "Error preverifying class h VERIFIER ERROR h.<init>(II)V: Expecting to find integer on stack com.sun.kvem.ktools.ExecutionException: Preverifier returned 1 Build failed " Can anyone help me make sense of these 2 error message?

Share this post


Link to post
Share on other sites
Moose6912    122
Quote:
Original post by fatjaba
What are you using to build it and how are you doing it?


WTK 2 for building.Basically,i open the project,build it by clicking on "Build" and then create an obfuscated package by selecting that option,that's when this problem comes in.

Share this post


Link to post
Share on other sites
nmi    978
"ProGuard is a free Java class file shrinker, optimizer, and obfuscator."

So it changes the size of the jar file. That is what the first error says.

Did you change the jad-file contents after you used Proguard on your jar-file to match the jar's new size ?

Share this post


Link to post
Share on other sites
Moose6912    122
Quote:
Original post by nmi
"ProGuard is a free Java class file shrinker, optimizer, and obfuscator."

So it changes the size of the jar file. That is what the first error says.

Did you change the jad-file contents after you used Proguard on your jar-file to match the jar's new size ?


I don't think that is the error.I've tried obfuscating other games with Proguard and WTK 2 and it was successful without needing any editing of te jad file.

Share this post


Link to post
Share on other sites
Woody FX    169
Proguard can not handle spaces in the name of the project!

'My Game' will not work while 'My_Game' will!


What is the name of your project????


Take it easy!
B

Share this post


Link to post
Share on other sites
Moose6912    122
Quote:
Original post by Woody FX
Proguard can not handle spaces in the name of the project!

'My Game' will not work while 'My_Game' will!


What is the name of your project????


Take it easy!
B


It's called BEH_s40.There are no spaces in the name of the project.Maybe the underscore doesn't work too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this