Viewing and Editing Project Properties
Running Projects in the Emulator
Searching the WURFL Device Database
Finding Files in the Multiple User Environment
CLDC Emulation on a Windows Mobile Device
Installing CLDC Emulation on a Windows Mobile Emulator (Windows Only)
Attach a Command Line Debugger
JSR 82: Bluetooth and OBEX Support
JSR 135: Mobile Media API Support
JSR 177: Smart Card Security (SATSA)
JSR 205: Wireless Messaging API (WMA) Support
JSR 211: Content Handler API (CHAPI)
JSR 226: Scalable 2D Vector Graphics
JSR 238: Mobile Internationalization API (MIA)
JSR 256: Mobile Sensor API Support
This procedure provides instructions for running the FPDemo sample project on a device running Windows Mobile. You can use this procedure with any CLDC project.
Windows
jdb -sourcepath installdir\apps\FPDemo\src -connect com.sun.jdi.SocketAttach:hostname=127.0.0.1,port=port-numberMac OS
jdb -sourcepath installdir/Contents/Resources/apps/FPDemo/src -connect com.sun.jdi.SocketAttach:hostname=127.0.0.1,port=port-numberIn this case the port number is 51307 to match the default debugging port number.
stop in calculator.CalculatorMIDlet.commandAction
The debugger displays the place where the execution stops.
res = n1 <op> n2;
Type next to continue.
eval n1
eval n2
eval n
set res = new-value
Type next to continue.
clear calculator.CalculatorMIDlet.commandAction
cont
You can see that the application displays the overridden result.
exit