File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "porting the kvm" Watch "porting the kvm" New topic
Author

porting the kvm

Tommy Tucker
Greenhorn

Joined: Jun 23, 2004
Posts: 12
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

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.


SCJP SCJD SCWCD SCMAD
ronan quillevere
Greenhorn

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: http://aspose.com/file-tools
 
subject: porting the kvm
 
Similar Threads
KVM Implementation
KVM
running application in C on mobile phone with Android
How to create/compile Palm app using J2ME?
Maven Tomcat plugin precompile JSPs problem