今年要在Ubuntu上开发J2ME应用程序吗? [英] Developing a J2ME application on Ubuntu in the current year?

查看:43
本文介绍了今年要在Ubuntu上开发J2ME应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近挖出一台运行J2ME应用程序并想为其编写应用程序的旧手机,以尝试使该SDK与Netbeans一起运行,并弄清模拟器由于各种兼容性问题而遇到了很多障碍工具链太老了

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.

所以我的问题是:对我来说,编译J2ME hello world应用程序最简单,最简单的方法是什么.我不需要IDE,并且没有仿真器也很好,我只想使用Ubuntu生成可以在手机上运行的.jar.

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.

下载 JDK 1.6 32位,解压缩,将mv压缩到/usr/lib/jvm/,将其锁定为root.

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

下载 Sun Java Wireless Toolkit 2.5.2_01 ,安装并将Java可执行文件路径设置为/usr/lib/jvm/jdk1.6.0_45/bin

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

从现在开始,您可以专注于ktoolbar如何处理项目. IDE项目设置应在ktoolbar文件夹结构下使用CLDC和MIDP库.

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.

这篇关于今年要在Ubuntu上开发J2ME应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆