• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class file size does not match error in sl45i phone

 
Rishi Tyagi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am making an application which uses RecordStore Class of javax.microedition.rms package for storage of the data.
Now when i run the application in emulator it runs successfully on both sl45i and m50 emulators given by siemens.
Problem is when i tried to run this application on real sl45i phone, the same application gives me following error
"Class file size does not match"
Unfortunately i don't have m50 real phone for testing the same.
Is there anybody who has faced the same problem.
Although i have tried to check with a simple application which uses RecordStore class it is very small in size but gives the same error while running in the real phone while in emulator it runs successfully.
Is this result shows that sl45i phone does not support the javax.microedition.rms API package or there is some other problem regarding the way of using the RecordStore class.
I will be really obliged if anybody can solve this problem as i am surprized at this error and not able to understand the exact reason behind the error.
Waiting for the reply
Regards,
Rishi
 
Rishi Tyagi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I tried with some simple application again, and found it works with sl45i real phone too.
Now i want to ask is there any size limitation what we have to consider while making Records for siemens phones.
If yes then i would like to know what is that.
Also i will be highly obliged if anybody can give some links where i can found these internal limitations of the j2me based phones.
Waiting for reply...
Regards,
Rishi
 
a sanjuan
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not familiar with the Siemens phones (am more familiar with limitations to motorola phones)...i'd suggest contacting siemens about it if you cannot find info on the web (i tried, but much stuff is in german, which i unfortunately do not speak).
 
Robert Linden
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No class-file may be larger than 32k. Perhaps that's your problem ? Try to break it up into several smaller classes. The _file-size_ is the point, not the size of data-structures and stuff.
HTH,
rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic