文档介绍:毕业论文
JAVA虚拟机在移动平台上的实现
作者:
学号:
学院(系):
经济管理系
专业:
信息管理与信息系统
硕士
指导教师: —
评阅人:
教授
助教
2005年 6月
JAVA虚拟机在移动平台上的实现
摘要
本文是一篇关于如何移植JAVA虚拟机到mFone平台的文章。总的来说,所谓JAVA虚拟机移植主要就是根据上下文语意修改、实现对应的native函数。
本文将会解释什么是KVM,什么是mFone以及如何移植KVM 到mFone平台。首先我们会介绍一些基本概念,接着以一些具体示例来演示如何移植,。在需要的地方我们还会给出一些注意事项(例如:如何提升性能)。总之我们的目标很明确:移植KVM到mFone平台,使得它尽可能快而且完整(不偏离KVM的设计目标)。
注意:虽然本文主要描述如何移植SUN的KVM到mFone平台上,但思想并不局限于SUN的KVM。
关键词:KVM,mFone,MIDP,CLDC
Implement of java virtual machine on mobile platform
Abstract
This page is about how to port JAVA virtual machine to mFone platform, also known as JVM porting. Generally speaking, the so-called JVM porting is mainly modify or implement the native functions by its context meaning.
In this page we’ll explain what’s KVM, mFone and how to port KVM to mFone platform. At first we’ll describe some basic concepts. And then, we will demonstrate how to port KVM by some samples in details, such as the demonstration of package. We’ll provide some notes (eg: how to speed up the performance) in somewhere if it is needed.
More specifically, our goal is to port the KVM to mFone platform, as “completely” and “fast” as possible without sacrificing the KVM design goals.
Note :This document will describe how to port the KVM to mFone platform,but the idea is not just related to SUN’s KVM.
Key words: KVM,mFone,MIDP,CLDC
目录
1 引言 1
为什么要移植 1
研究述评 1
业内动态 1
待移植平台现状 3
3
商业前景 4
内容安排 4
2 概览 5
Java概览 5
什么是Configuration 5
什么是Profile 6
J2me平台结构 6
Midlet运行流程 7
mFone平台介绍 8
包移植示例 8
8
SocketConnection的实现 9
3 API函数移植 13
MIDP API概述 13
14
MIDP API的实现 15
分类及示例 15
注意事项 19
事件 19
4 结论 20
参考文献 22
致谢 23
1 引言
手持设备一个吸引人的特点就是它是连网的,其实如果没有网络,手持设备将毫无用处。但即使有了网络,如果不能满足用户个性化安装程序的需求,手持设备也会变得毫无情趣。理由很简单,因为不能满足用户个性化安装程序的需求就没有吸引人的内容。如果所需的程序以用户可选择的方式,通过网络下载到手机上,