Java on the Palm


Contents


Overview

OK, so you want to run Java on your Palm, but how do you do it? Or you want to go even one step further and write your own programs. Well, lets just have a short look on the general structure of things before going into the details of how to do these things.

Application Level this is the application you did write it runs on your Palm (or on the desktop in an emulator of your choice)
Profile Level this is the profile you do base your application on this is currently still optional, later you will need to have this installed on your Palm and available on your desktop for your application development
JVM Level this is the Java Virtual Machine you actually run on this is currently the J2ME/CLDC. you need to have this installed on your Palm and as well available on your desktop for your application development


Running Java programs on the Palm

  1. Get the required software.
    You need a JVM for the Palm to run your programs on. You can get the source code from SUN for their J2ME and their Palm package and compile one yourself, or get a precompiled one. I suggest get the Color KVM which includes kAWT support (a AWT compatible GUI packages).

  2. Installing the software.
    All you have to do here is to hotsync the JVM and the java programs (in form of PRC files) onto your Palm...


Writing your own programs

This is a bit more challenging. Before starting this, make sure you have done the above and can run Java programs on your Palm! Further I do assume you know how to write and execute a Java program (application) on a PC using the JDK.
  1. Get the required software.

  2. Installing the software.

  3. Writing your own program.
    Below are the steps you have to do. If you do not know how to do any of these then have a look at one of my makefiles.


Limitations

Unfortunately there are some limitations to what can be done in Java and run on both (Palm and PC) systems. Here is a list of the things I have noticed so far and some suggestion (if I know any) what to do about it...

Limitations of programming for the Palm

So what can you do about it? Well, wait until this has matured more or help to develop it further!


Limitations of Palm programs on the PC


Speeding up Java on your Palm

Any other suggestions? Let me know!


Makefiles

Here is my Makefile I use for Linux/Solaris. I sometimes work under Windows as well. There are some small changes required, as documented in the Makefile itself.

This Makefile offers the following (main) entries: