This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java Micro Edition and the fly likes Java ME Application running fine in Emulator but crashing when deployed to N70 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Java ME Application running fine in Emulator but crashing when deployed to N70" Watch "Java ME Application running fine in Emulator but crashing when deployed to N70" New topic
Author

Java ME Application running fine in Emulator but crashing when deployed to N70

Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

I have developed a Java ME application for CLDC platform. It works fine when executed in an emulator. But when i deploy it to my N70 phone the application doesn't start at all in the phone. In my application there are some 14 classes and am creating an instance of each and putting them in the vector on application start. The classes just have one variable and 2 methods. Can this creating of lot of instances be the reason for its crashing?

Is there any way I can find out the reason why the application is not able to start in the phone?


Mohamed Sanaulla | My Blog
him jain
Ranch Hand

Joined: Feb 05, 2010
Posts: 56
Check what config and profile you have selected?
Make it :
MIDP 2.0 and CLDC 1.1
then try to deploy the app and tell if that made any diff.


--Himanshu Jain
http://jainhim.blogspot.com/
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

I had posted this query on StackOverflow as well and was able to identify the reason for this- I was creating an instance in the constructor which was leading to this problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java ME Application running fine in Emulator but crashing when deployed to N70