简体   繁体   中英

Developing a J2ME application on Ubuntu in the current year?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM