MicroEmulator on Maemo SDK
and probably on the Nokia 770 Internet Tablet
MicroEmulator is CLDC/MIDP implementation initially written to run J2ME
over J2SE. One of the most popular use of MicroEmulator is
demonstration of MIDlets on web as applet.
How to run CLDC/MIDP applications on Maemo?

Inside the scratchbox:
1. Create microemu-maemo development folder
mkdir microemu-maemo
cd microemu-maemo
2. Download and install JamVM 1.4.2 (http://jamvm.sourceforge.net/)
tar xzf jamvm-1.4.2.tar.gz
cd jamvm-1.4.2
./configure
make install
cd ..
3. Download and install Jikes 1.22 (http://jikes.sourceforge.net/)
tar xjf jikes-1.22.tar.bz2
cd jikes-1.22
./configure
make install
cd ..
4. Download and install GNU Classpath 0.90 (http://www.gnu.org/software/classpath/)
tar xzf classpath-0.90.tar.gz
cd classpath-0.90
./configure --with-jikes
make install
cd ..
5. Download and install SWT 3.1.2 (http://www.eclipse.org/swt/)
unzip swt-3.1.2-gtk-linux-x86.zip -d swt-3.1.2
6. Download and install Ant 1.6.5 (http://ant.apache.org/)
tar xzf apache-ant-1.6.5-bin.tar.gz
7. Download and install MicroEmulator from CVS (http://www.sourceforge.net/projects/microemulator)
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/microemulator login
When prompted for a password for anonymous, simply press the Enter key
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/microemulator co -P microemulator
cd microemulator
Edit build.properties file and set the following variables:
target.app.type = swt
target.app.type.swt.jar = ../swt-3.1.2/swt.jar
jamvm -cp ../apache-ant-1.6.5/lib/ant-launcher.jar -Dbuild.compiler=jikes -Djikes.class.path=../classpath-0.90/lib/glibj.zip org.apache.tools.ant.launch.Launcher all
cd ..
8. Download and install Microemu-maemo from CVS (http://www.sourceforge.net/projects/microemulator)
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/microemulator login
When prompted for a password for anonymous, simply press the Enter key
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/microemulator co -P microemu-maemo
cd microemu-maemo
jamvm -cp ../apache-ant-1.6.5/lib/ant-launcher.jar -Dbuild.compiler=jikes -Djikes.class.path=../classpath-0.90/lib/glibj.zip org.apache.tools.ant.launch.Launcher
cd ..
9. And finally run the SimpleDemo MIDlet
jamvm -cp swt-3.1.2/swt.jar:microemulator/target/me-app.jar:microemu-maemo/target/microemu-maemo.jar:microemulator/target/simpledemo.jar -Djava.library.path=swt-3.1.2 org.microemu.maemo.Main com.barteo.midp.examples.simpledemo.SimpleDemo
To run own MIDlets replace:
- microemulator/target/simpledemo.jar with own MIDlet jar
- com.barteo.midp.examples.simpledemo.SimpleDemo with own MIDlet class name
History

First succesful run (2006-03-08).