Subj : Re: The smallest customized Rhino? To : netscape.public.mozilla.jseng From : "James Zhou" Date : Wed Apr 23 2003 04:22 pm "Igor Bukanov" wrote in message news:3EA46D18.3050103@icesoft.com... > > You can remove the serialize package and the following list of classes > and still have Ecma-confirming implementation: > > ClassNameHelper > ClassRepository > FunctionObject > ImporterTopLevel > Invoker > LazilyLoadedCtor > NativeJavaPackage > NativeJavaObject > NativeJavaMethod > JavaMembers > NativeJavaArray > Synchronizer > > You will have to comment out some of the code after the removal of the > whole list, but the interpreter should still work OK. You can also > remove all deprecated code and run any code shrinker on the rest of classes. > > > Or maybe I should work on an old version? > > The code size for 1.5R2 was increased compared with 1.5R1 as a result of > internal reorganization but that decreased the total memory consumption > by JVM significantly. > > > Regards, Igor > Thanks Igor for your detailed reply. Currently I am working on 1.4R3 build, The smallest build I created is 119K Jar file (Obfuscated) and 206K uncompressed class file (Obfuscated). I have removed classfile, tools, regular expression, java adapter, and some java native implementations. The basic interpreter is still working. I didn't remove liveconnect because I need that in my implementation. My goal is to build a script engine on J2ME, so right now it is still a little big for me. Now I am trying to go through every file to see if I really need it. Regards, James .