Developing a J2ME application on Ubuntu in the current year?

半世苍凉 提交于 2021-02-17 06:31:01

问题


I recently dug out an old phone that runs J2ME applications and would like to write applications for it, in my attempts to get the SDK running with Netbeans and figure out the emulator I've hit many roadblocks caused by various compatibility issues due to the toolchain being so old.

So my question is this: What is the most straightforward, minimalist way for me to compile a J2ME hello world application. I don't need an IDE and am fine without an emulator, I just want to use Ubuntu to produce a .jar that will run on my phone.


回答1:


Two years ago I used the following steps to develop with emulator.

Download JDK 1.6 32 bits, uncompress, mv to /usr/lib/jvm/, chown to root.

Download Sun Java Wireless Toolkit 2.5.2_01, install and set java executable path to /usr/lib/jvm/jdk1.6.0_45/bin

sudo apt-get install libxi6:i386 libxt6:i386
./WTK2.5.2/bin/ktoolbar

From this point onwards you can focus on how ktoolbar handles projects. IDE project setup should use CLDC and MIDP libs under ktoolbar folder structure.



来源:https://stackoverflow.com/questions/60249224/developing-a-j2me-application-on-ubuntu-in-the-current-year

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!