• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to overcome the Invalid jar file exception

 
Santhana Lakshmi.S
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i did one j2me application.After finishing tht project i tried to created obfuscated package to load my application.while creating package the following exception occurs

Error preverifying class k
Class loading error: Wrong name
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.
can anyone tell me how to eliminate this exception n y this exception occurs?
thanx a lot
 
vijay karmani
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lakshmi,
The error is with jad file. There is some rules to be followed for jad file. Like there must not be blank value for any key.

e.g. there should not be entry like
key :
Jad file doesnt allow spaces for key.

e.g. My Name :
Instead it should be myname :

It will eliminate your jad exception.

As far as preverifying is concerned, you might have used API which CLDC version doesnt support(e.g float is not supportd in CLDC 1.0).
Check these things. I hope u will be able to run your application then.
 
Santhana Lakshmi.S
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
thanx for ur reply.i eliminate tht exception by reducing the no of class in my application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic