• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

porting the kvm

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

Tom
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic