B.2 Installing MIDP on PocketPC DevicesTo install the WME MIDP runtime on a PocketPC device, you just need to copy a bunch of executable and library files to the device through ActiveSync. The entire JVM and runtime libraries can be installed on the flash card. The detailed steps are as follows: We need to set up a logical directory structure on the device. For example, we can create a top-level installation directory /WSDD. The directory structure under /WSDD is illustrated in Figure B.2. Figure B.2. The installation directories on the device.![]() From the IVEHOME/runtimes/pocketpc/arm/ive/bin directory on your development PC (IVEHOME is under the WSDD installation directory), copy the following runtime executable files to the /WSDD/bin directory:Console and non-console versions of the JVM: j9.exe and j9w.exe files.Dynamically linked runtime libraries for the JVM: j9dyn20.dll, j9prt20.dll, j9thr20.dll, j9vm20.dll, j9zlib20.dll, and iverel20.dll files.Debugging libraries: j9dbg20.dll and j9hook20.dll files.Native implementations of the CLDC, MIDP, and SWT libraries: j9cld20.dll, j9midp20.dll, and swt-win32-ce-2023.dll files. The SWT library is the basis for the MIDP LCDUI implementation. Copy the CLDC Java class library file classes.zip from the directory IVEHOME/runtimes/common/ive/lib/jclCldc on the PC to the directory /WSDD/lib/jclCldc on the device.Copy the MIDP Java class library file jclMidp.jxe from the directory IVEHOME/runtimes/pocketpc/arm/ive/lib/jclMidp on the PC to the directory /WSDD/lib/jclMidp on the device. NoteIf you plan to install the runtime on the flash storage card, you can set the top-level directory to /Storage Card/WSDD. |