This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

porting the kvm

 
Tommy Tucker
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Tiger Meng
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
ronan quillevere
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic