1
votes

I'm working with LWUIT 1.5 to make my own theme to apply to my J2ME application. I've found a problem when I've added datas to my theme from Data tab in LWUIT Resource Editor. Those data files are .csv files.

When I run my application, It show me java.lang.OutOfMemoryError in my Eclipse console and it doesn't start.

I've found that several of this data files are causing this problem because their sizes are more than 100.000 bytes. Does it means that I need to use data more small? Does it means that exist a maximum size to that resources?

Any ideas?

Thank you

1
what is the size of your .JAR file & for which mobile you are testing it ? - Lucifer
Hi! @Lucifer finally I've decided to divide my file in several files. This file is used to create my local database into my device when the applicacion is runned the first time. But it's so slowly (times about minutes, it depends the size of files). How knows what can I do to decrease these times? - vicmonmena

1 Answers

1
votes

Basically OutOfMemoryError occurs on S40 mobiles. Because they have only heap memory 1 to 2 MB size. They can't extended their memory on run time. So when its exist, OutOfMemoryError exception will be throw. So better idea, If you handle huge size of files, just store it in server and read from server. Use web service for this. Look on these articles, then you can get better idea about how to handle,