1) Remove *PropertyListener* methods from src/org/mozilla/javascript/
Context.java - java.beans.PropertyChangeListener is not available on
Android.
2) Run ant jar to build js.jar
3) Set max heap space for dx tool to 1 gig (change javaOpts="" to
javaOpts="-Xmx1g" in android-sdk/tools/dx)
4) run the following commands to convert the classes for the Dalvik
VM, start the Android emulator, upload the jar file and start the
Rhino shell:
dx --dex --output=classes.dex js.jar
aapt add js.jar classes.dex
emulator &
adb push js.jar /data/rhino/js.jar
adb shell
cd /data/rhino/
dalvikvm -classpath js.jar org.mozilla.javascript.tools.shell.Main
@IMPLEMENTATION.VERSION@
Feb 24, 2009 4:01:10 PM java.io.BufferedReader <init>
INFO: Default buffer size used in BufferedReader constructor. It would
be better to be explicit if a 8k-char buffer is required.
js> var x = 123;
js> x
123
js>
I haven't had the opportunity to test this on a real device, but I'll
bug my co-worker who just gut a T-Mobile G1 tomorrow.
Hannes