Thursday, January 04, 2007

How to run j2me application on Palm

I skip my dinner today, which is not good.

Question: Is it possible to run midp application on Palm?
The quick answer is yes, but how?

This just give you some idea how it will work, but not showing the detail step by step.

You should know how to write an j2me midp application, there are many tutorial on the internet that you can follow. What you need to do now, is to convert j2me jar file to a palm prc file, after that install this prc file and midp VM to the Palm device will do.

Yesterday night, some web site told me, there is a jar2prc tools to convert a jar file to prc file. I was searching high and low, but can't find this utility file. Seems like this jar2prc file is not a standard utility, it came with IBM WEME (Websphere Everyplace Micro Environment), and not Sun wireless toolkit.

Seems like the j2me vm is still within the competition between Sun and IBM. IBM's j2me VM is the majority on Palm OS platform. I am more familiar with Sun's tools, because I was using it when I first develop j2me application.

My development experience on j2me is about four to five years ago, but I almost forgot everything now. Luckily I still keep some README note from other developers, and I take a quick browse. Sun wireless toolkit is using midp4palm to convert jar to prc.

(Please take note, the prc generated by IBM need WEME, prc generated by midp4palm need Sun's midp. I guess should be the ID generated by both tools are different)

Most website (which is very old), will point you to http://java.sun.com/products/midp4palm/download.html which already been removed by Sun. I am not sure how you are going to generate the prc file now, but since I still keep this midp4palm file, I use this 5 years old file to generate prc file.

midp4palm
midp4palm, convert j2me jar file to palm

If you really can't find midp4palm, you should use IBM as your development tools, now you know why WEME dominate on Palm platform.

3 comments:

Sergio said...

if this converter can´t be founded, how can I convert mi jar files into prc?

fuyichin said...

Use IBM WEME development tools, they are using the J9 Virtual Machine. Most newer Palm system should support IBM VM for Palm.

I have just tried once to convert jar to prc file, but not really familiar with the process.

I don't not have the IBM WEME software link, but if you search you should able to find it, need an IBM login id for the download.

fuyichin said...

Fernando,

You are right. Jar file can be downloaded using the IBM VM manager.