I\'m trying to use Mozilla Rhino in my Java application for Android to evaluate some JavaScript. I am using Eclipse + ADT plugin.
First I tried simply downloading th
An Android-compatible edition of rhino1_7R2.jar
is available on the SL4A site, in the version control system. Here is a sample project that wraps up Rhino and BeanShell into an Android interpreter service.
I finally got it to work. I should have paid more close attention to that blog post I linked.
If I add the line
cx.setOptimizationLevel(-1);
to disable optimisations, everything works perfectly.
I've written a library which allows to run Rhino on Android.
Advantages include:
https://github.com/F43nd1r/rhino-android