| China defined it's own standards of digital TV based on European standards such as DVB, MHP. In 2003, China defined the draft of "Digital TV Middleware Technology Stardards". The draft is waiting for examination and approval now, and the Java techonology was defined as a nesscery part in this draft.Java technology has some particular characters such as simple, safe, easy to transfer and portable. Sun's open source strategy made Java more opening. All these made Java techonology developed fast and became more universal. Java techonology had became the core of DTV's middleware standards such as MHP and OCAP.Though the DTV middleware standard of China has not published yet, the industry had already made an attempt at trying to port Java virtual machine to set-top boxes, and that was what this project trying to implemented. To get prepare for the research, learning some standards of DTV middleware and some experiences on middleware development was necessary. According to the hardware and software environment of the set-top box to which a Java virtual machine about to port, CLDC and MIDP profile was chosen in this dissertation, and the core virtual machine was KVM.This project first compiled CLDC and MIDP with GCC and VC, the running and debugging helped to understand the inner mechanism of KVM. A platform was built based on the characters of set-top boxes. It provided a debugging environment for embeded applications. The second step was modified the source code of CLDC, and porting KVM core to a set-top box with limited resources. After reading the guide papers of OS and hardware drivers of the set-top box, MIDP's LCDUI part-the graphical interfaces was implemented. |