This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply 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
Bartender

Joined: Sep 08, 2007
Posts: 2927
    
  15

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
Bartender

Joined: Sep 08, 2007
Posts: 2927
    
  15

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
 
Similar Threads
problem with j2me and nokia phone, characters does not change after pressing buttons.
Button issue
How can I correct java applications that fail to run on mobile phone?
I am having problem while deploying and running my J2ME game on Nokia 3510 phone Plz
Uncaught exception java/lang/OutOfMemoryError while running application in Nokia S60