aspose file tools*
The moose likes Java Micro Edition and the fly likes why ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "why ?" Watch "why ?" New topic
Author

why ?

zhang qiang
Greenhorn

Joined: Mar 14, 2005
Posts: 1
my setting of j2me is eclipse3.1+wtk2.3+eclipseme1.01. but when i is debuging a midlet, eclipse come up an error message:"couldn't connect to virtual machine".and
"Debugging not available in OTA mode (Except for -Xjam:run)
Warning: Running JAM, Ignoring all other options (but "-Xheapsize", and OTA flags if provided)
Running with storage root DefaultColorPhone
Running with locale: Chinese_People's Republic of China.936
** Error installing suite (39): The JAD matches a version of a suite already installed.
Execution completed.
245045 bytecodes executed
713 thread switches
890 classes in the system (including system classes)
1529 dynamic objects allocated (63884 bytes)
1 garbage collections (0 bytes collected)"
but name of project is same of MIDlet's name.and sometimes ,if i don't press "OK",the MIDlet can run normally.


//
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

When you run the MIDlet in the Toolkit are you just running it, or running it in DEBUG mode? Not sure how Eclipse works, but for IntelliJ, I have a DEBUG configuration that connects to a certain port number.

I then run the MIDlet in the Toolkit by selected the debug menu item under the project menu. It pops up an box with the port number that should be used in my debug configuration in IntelliJ. After the MIDlet is running in debug mode, I then run IntelliJ's debug configuration that I created and it connects.

Hope that helps

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Francois Granade
Greenhorn

Joined: Sep 21, 2005
Posts: 1
I've found a partial solution on this german newsgroup: http://www.j2meforum.com/viewtopic.php?p=18663

The probleme is that in some cases, exiting from the emulator does not happen correctly and the folder containing the installation of the midlet. there are two possible workarounds:
- delete by hand the "<your WTK>\appdb\DefaultColorPhone" folder (mine is at "C:\WTK22\appdb\DefaultColorPhone")
- do not exit with the "Exit" menu, but instead use the red button (hangup) on the emulator itself.

Using the "Exit" menu leave the folder "C:\WTK22\appdb\DefaultColorPhone" and prevents the next launch of the emulator to work.
 
Consider Paul's rocket mass heater.
 
subject: why ?