The KVM is an implementation of MIDP and MIDP is based on CLDC. CLDC does not specify ANY kind of native calling convention, and hence no JNI. However, there are versions of the KVM implementation of MIDP which support JNI as an 'additional feature'. Weather using this kind of feature is appropriate depends upon what benefits you hope to gain from using J2ME. Using this will tie you not only to your platform, but also your MIDP implementation, and the availability of this aditional feature on other platforms that the implementation ships on.
I do not think that using any J2ME in a Palm game is a worthwhile practise, unless you are ultimatly targeting a mobile phone device there is no point in using MIDP. If you have more questions regarding J2ME, I suggest that you post them on the SUN KVM interest forum. http://swjscmail1.java.sun.com/archives/kvm-interest.html Where myself and a bunch of other losers talk about J2ME etc. when we should be working. L8r, Idries -----Original Message----- From: Manoj K S [mailto:[EMAIL PROTECTED]] Sent: 09 July 2002 10:36 To: Palm Developer Forum Subject: Re: RE: Jave game on SONY CLIE NR-70 Dear Idries, Thanks for your reply. I am new to java also. Regarding using of J2ME,i thought i will use java2me wireless tool kit.But i am not sure how to proceed. My requirement is to write a video game in java,for SONY CLIE NR70.I am asked not to use the graphics command of java.I have to use graphics command of palm os instead. KVM passes only postion of objects.. So,the architectue becomes ------game call palm commands------- | | Videogame--->KVM-------------------->Palm OS---->CPU I dont know how to proceed. Could you share your thoughts on this? Also i like to know whether KVM supports JNI?? Regars, Manoj K.S On Mon, 08 Jul 2002 Idries Hamadi wrote : >I do not think that what you are trying to do is possible. > >If you want to develop a game using J2ME (which I infer is what >you want to >do as you've got the J2MEWTK) then you are restricted to using >Java graphics >API's, as the J2MEWTK is centered around CLDC which does not >allow native >methods to be called from Java. > >I can see 2 ways around this: > >1 - Don't use CLDC. If you want to use Java there are other Palm >Java >technologies available, such as Personal java, and any of the CDC >based J2ME >profiles. All of these allow Java to access native methods. > >2 - Get the source code to MIDP4Palm (I think that it's >available), and >modify it to allow native calls. This might not be as much work >as it >sounds, apparently the J2MEWTK source has native method support >in it, and >it's just a question of changing your build settings to activate >it. > >Can I ask why you want to do this? What will you gain by using >J2ME at all? > >Cheers, > Idries > > > -----Original Message----- > > From: Manoj K S [mailto:[EMAIL PROTECTED]] > > Sent: 08 July 2002 06:44 > > To: Palm Developer Forum > > Subject: Jave game on SONY CLIE NR-70 > > > > > > Hi all, > > I am manoj.I am newbie to palm development. > > > > I have SONY CLIE NR-70 with PALM OS 4.1. > > I would like to develop a small video game in java,that used >the > > palm OS grahics commands.(Not the jave graphics commands). > > I have downloaded the J2SE,JEMEWTK,Palm OS emulator. > > > > 1. Could any one pls suggest some ways to proceed. > > 2. Can any one tell some sites where i could get some sample > > codes? > > > > Thanks and regards, > > Manoj K.S > > _________________________________________________________ > > There is always a better job for you at Monsterindia.com. > > Go now http://monsterindia.rediff.com/jobs > > > > > > > > -- > > For information on using the Palm Developer Forums, or to > > unsubscribe, please see >http://www.palmos.com/dev/support/forums/ > > > > >-- >For information on using the Palm Developer Forums, or to >unsubscribe, please see >http://www.palmos.com/dev/support/forums/ _________________________________________________________ There is always a better job for you at Monsterindia.com. Go now http://monsterindia.rediff.com/jobs -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
