File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes porting the kvm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "porting the kvm" Watch "porting the kvm" New topic

porting the kvm

Tommy Tucker

Joined: Jun 23, 2004
Posts: 12

I want to do some socket programming using the kvm from the sun CLDC1.1
reference implementation. I was reading in the kvm porting guide that KVM
1.1 implementation does not include network protocol implementations and if
you want to use them you have to include additional libraries such as those
available in the MIDP but to do this, porting of the kvm is necessary. But I cant seem to find any instructions in the porting guide or on the web about how exactly i should do this. I know you have to include the source files from the additional libraries in the j2me_cldc/api/src folder and recomplie the kvm. But this is not working for me. Can anyone give any tips on how I can do this? Anyone know of a good tutorial that covers porting the KVM?

Thanks for any help

Tiger Meng
Ranch Hand

Joined: Nov 10, 2002
Posts: 32
socket code of cldc1.1 is just for TCK, no use at all.
you can study midp2.0 RI 's source code of Socket.

you may say, midp2.0 is only for cldc1.0.4, it is right,
but you can still got the idea about how to implement and port it.

ronan quillevere

Joined: Jun 25, 2004
Posts: 3
To port your kvm you should read the KNI specification 1.0 which comes with the Java 2 Platform, Micro Edition Connected Limited Device Configuration Version 1.1 Reference Implementation here in chapter 7 you'll find how call native functions (example call a helloworld in c )

This should help and good luck for compiling the kvm (if you do this under windows this could help (page1 ; page2)
I agree. Here's the link:
subject: porting the kvm
jQuery in Action, 3rd edition