B.4 Run Java Applications on the PocketPC Device With the J9 VM and runtime libraries installed, we can now copy Java applications (JAR files or JXE files) to the device. To run Java applications on the PocketPC, follow these three easy steps: Build a windows link file: On you desktop PC, use any text editor (e.g., the NotePad) to create a text a file with the Ink extension name. The content of the file is a single command line. For example, the following command line (without line break) starts a Personal Profile application from a JAR file myApp.jar. 123#"\WSDD\j9.exe" -jcl:foun "-Xbootclasspath:\WSDD\lib\jclFoundation\classes.zip; \myApp.jar" "com.enterprisej2me.test" -console "Launch"
Copy the link file to the device: Use ActiveSync to the copy the link file. The link file will have a J9 icon when viewed from the device.Execute the command in the link file: Simply tap on the link file to start the VM and execute the command. All log messages will appear in a console window in the background.
NotePocketPC limits the maximum size of a link file to 255 bytes. A longer file is not recognized as a link even if it has the lnk file extension. The WSDD IDE could help build the link file for your projects. |