Tag Archives: J2ME

J2ME & C

develop in C, compile to Java bytecode and run on J2ME: http://spel.bth.se/index.php/Cibyl

…sold through handset manufacturers and network operators…

Just shows how desparately J2ME lacks a sales model a la Apple’s AppStore: Turn Your Phone into Babel Fish.

J2ME Pattern: ActiveRecord

Though J2ME forces you to be close with adding classes, type-safe & convenient persistence might be something you don’t want to miss. And as RecordStores are the primary application persistence stores, there’s some boilerplate code you can refactor out into one single common base class. Also – especially from a pattern standpoint – it’s a […]

J2ME Pattern: RMS Migrations

Inspired by RoR Migrations I’ll summarize how to gain similar benefits in the J2ME world with respect to it’s special needs: attach a version marker to each RecordStore name, as there’s no callback at install time and at launch time things must be quick as possible, use a fall-back mechanism on opening RecordStores, therefore use […]

J2ME & Maven2

Huh! I just found out, there is a fine Maven2 Plugin for J2ME. It comes with an archetype to jump-start developing J2ME applications with maven. Use the archetype like this: $ mvn archetype:create -DarchetypeGroupId=com.pyx4me -DarchetypeArtifactId=j2me-simple -DarchetypeVersion=2.0.3-SNAPSHOT -DremoteRepositories=http://www.pyx4me.com/maven2 -DgroupId=org.example -DartifactId=myapp And if you develop against a nokia phone, it comes even better – there’s a gammu […]

Nokia 6610 J2ME Capabilities

The Nokia 6610 has those J2ME/CLDC/MIDP capabilities. Frankly I don’t understand all of it’s findings, especially the one claiming „RMS: not implemented“ – if that means javax.microedition.rms it’s just not true. Check your phone at mobile-utopia.

WTK post install / filesystem permissions

If running your app from the eclipseme emulator shows the following console output Running with storage root DefaultColorPhone Warning: Failed to initialize WMA message routing support Error: Can’t remove a lock file: /opt/sun-j2me-bin-2.2/wtklib/comcon-server.port.lock Warning: Failed to initialize Bluetooth (JSR 82) support … Warning: The attempt to finalize unexisting client. java.lang.NullPointerException at com.sun.kvem.midp.MIDP.run(Unknown Source) at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown […]

CLDC 1.0 und MIDP 1.0 in EclipseME

da das Nokia 6610 schon ein recht betagtes Mobilfon ist und nur CLDC 1.0 und MIDP 1.0 unterstützt, sollte das im „Eclipse > Window > Preferences > J2ME > Device Management“ eingestellt werden. Ich habe also das „DefaultColorPhone“ unter Beibehaltung des Namens (sic!) geklont (duplicate): und wie folgt eingestellt: Anschließend läßt sich per „Eclipse > […]

J2ME Entwicklungsumgebung + Wireless Toolkit

wie gewohnt auf einem gentoo stable amd64 Linux. JDK: $ sudo emerge dev-java/sun-jdk Eclipse 3.4 herunterladen und auspacken, J2ME Wireless Toolkit 2.2: $ sudo su – $ echo „dev-java/sun-j2me-bin ~amd64“ >> /etc/portage/package.keywords $ echo „dev-java/sun-j2me-bin examples“ >> /etc/portage/package.use $ emerge dev-java/sun-j2me-bin $ # USE-Flag „j2me“ setzen, z.B. via „$ sudo ufed“ $ sudo emerge proguard […]