Hi, I am looking at possibly attempting to port Rhino to J2ME. J2ME is basically a very stripped down version of J2SE and it is compatible with Java 1.3.
The port would really only need basic JS functionality. I need to only run in interpreted mode so no class compiles are needed, no inheritance, and no implementing interfaces, no security controller, etc. After looking through the Rhino source code, I have a short list of the issues I see. 1. There is no reflection in 1.3. I do need access to Java objects, but I was thinking I could maybe write a simple bridge where instead of putting Java objects into JS, one method was called with some parameters and then the Java side would take those and do what it needs to do and just return a string result that the task was done. 2. ClassLoader is a problem for 1.3. Maybe that can just be eliminated because I do not need compiles? 3. Generics, there is none in 1.3. I would have to rewrite the Rhino classes to take care of that? 4. Missing JDK classes. I would have to try to bring those in from SE or write replacements. I saw where I could compile the small to jar to prune some things I would not need, and in a Rhino Ant Script, it looks like maybe you can target 1.3 with a retrotranslater? Even with that, I would manually need to prune those things because I still need to know what I have to provide from SE. It is likely, I will be able to open source this when and if it is done. I would appreciate any thoughts, comments, or advice. Thanks! Tony Z _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
