Kwang 的个人资料猪会飞照片日志列表 工具 帮助
2006/2/13

Wince Java Migration

Windows CE, I have decided, is worse than Windows, but on a smaller scale. That is because it contains the same amount of *functionality* and horrible APIs, but on a smaller scale. So if we were to consider this a dilution pollution problem, Windows CE is worse than other Windi because of the relative proportions.


This is a story about getting Java to work on Windows CE 3.0. Why Java? The project has to be portable, and on CE, I'm stuck between VC++, VB and Java. Java is the best solution for my problem. Although I do not like VC++, I do like forced garbage collection, but System.gc() will have to do for now. After visiting java.sun.com, I found that there is not a binary distribution of the Windows CE runtime available, which let me down a meandering path, which I will document here. One also should note that I have an x86 laptop which only exists to do development when I need it, so it is a clean Windows 2000 install, less .NET tools.

CLCD 1.1 it is, so I grabbed the source ball.
I downloaded eMbedded VC 4.0 from microsoft, and gave it a go at compiling the KVM. Right out of the tar ball, I got a few compile errors, which were missing dependencies: nativeFunctionTableWin.c ROMjavaWin.c
These files live in the tools/jcc directory, according to the dependency information, so I dove into that directory. In that directory, surprise, is a Makefile.
So I open up the make file and find that I need to generate those files, but it doesn't seem that windows has "make".

Solution: cygwin
In order to get the tools that I need, I download cygwin and installed gcc, make, and some java develop packages just to be safe. I next loaded the cygwin shell and in the tool another look at the Makefile in the tools/jcc directory. I need to build the preverifier first it seems, so off to tools/preverifier/build/win32 and type "make".
New issue, it seems that the Makefile in the "api" directory is incorrect, but that's easy to fix. The "$(PLATFORM)" string in the "PREVERIFY" path is getting lost somewhere because make seems to think that I'm on a unix target, so I'm just going to fudge it and change it to win32. (Makefile) Next issue, I need to have javac accessible from cygwin for javac to work, so I put a javac wrapper in the /bin/ directory.
Now back to the tools/jcc directory to "make windows".

Back out of cygwin
Back into eMbedded VC and voila, the project builds and I have VmWinCE.exe to download.

评论 (2)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

10 月 21 日
没有名字发表:

Hi,Do you need screen advertisings, digital sign, digital signages and LCDs? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.

amberdigital Contact Us

E-mail:sstar@netvigator.com
website:www.amberdigital.com.hk
alibaba:amberdigital.en.alibaba.com[hchb

9 月 12 日

引用通告

此日志的引用通告 URL 是:
http://piglikefly.spaces.live.com/blog/cns!F870C49BF4F36EC3!191.trak
引用此项的网络日志