| Reply | « Previous Thread | Next Thread » |
|
Hi,
I compiled sources of helloworldplus demo application with javac 1.4.2_06. I can install it on Emulator but it is impossible to run it. No error is generated - after launch nothing happens. The original jar of hello application can be loaded and run successfully. The only difference is that in my jar are classes compiled by me, JAD and manifest are the same except jar size parameter in jad. Does anybody know how to fix it? Where can I find any log? I'm using Emulator from S60 3rd SDK for MIDP. Regards, kempston |
|
well its very difficut to say wat might be cause, so u try to put some system.out in the code and try if the app is starting or not, and in catch block print the excepcetion and see if any comming.
|
| prakash.raman |
| View Public Profile |
| Find all posts by prakash.raman |
|
I put try-catch in startApp(), but nothing changed. Application is installable but I cannot run it. No error, no visible effects. In diagnostic tools I can't see HelloWorldPlus process. It seems that launching engine in emulator in some reason doesn't work with my application.
To be completely sure I produced following code and experienced the same: package ex3; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class Class1 extends MIDlet { public void startApp() { try { System.out.println("It's OK!"); } catch (Exception e) { e.printStackTrace(System.out); } } public void pauseApp() {} public void destroyApp(boolean unconditional) {} } Is it possible to switch emulator to generate log with internal events? |
|
well buddy i did minor changes in your code and it working fine on wtk tool kit...
Quote:
|
| prakash.raman |
| View Public Profile |
| Find all posts by prakash.raman |
|
Yes, on WTK it can run.
I installed this application in FP1 emulator and then I've got the same error which was described by mnoromaa in http://discussion.forum.nokia.com/fo...d.php?t=107166 |
|
Well buddy i tried that code on series 60 3rd edition emulator and it is not working but just try this one if its wokring on ur emulator or not..
Quote:
|
| prakash.raman |
| View Public Profile |
| Find all posts by prakash.raman |
|
On S60 3rd MIDP - nothing
On S60 3rd MIDP FP1 - "unhandled exception. application close?" On WTK it works partly - after launch pressing any key exits the emulator. In WTK I saw interesting thing. There was an ALERT: java/lang/ClassFormatError:Bad version information It seems that there is an java version incompatibility among my jar, standard libraries used during compilation, and JVM the emulator run under. I'll try to make some tests on different versions. |
|
Eureka!
According to http://developers.sun.com/mobility/m...ant/index.html all class after compilation and before making jar MUST BE preverified. Preverificator is in bin catalog WTK or Nokia SDK. Thanks prakash.raman for your attention. |
|
Good man u got the solution..
|
| prakash.raman |
| View Public Profile |
| Find all posts by prakash.raman |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| How do you run an application on the emulator on the PC so a phone can see it | johncogan | Mobile Java Networking & Messaging & Security | 0 | 2006-02-21 15:39 |
| My application run perfectly on Emulator but can't run on mobile device (Socket) | x1054 | Mobile Java Networking & Messaging & Security | 5 | 2005-11-07 22:12 |
| How to run my application in J-Sky emulator | bb_sathya | Mobile Java Tools & SDKs | 0 | 2005-09-01 09:12 |
| Unable to run application error inside the application | prakala | Mobile Java General | 2 | 2003-05-27 23:46 |