Subj : Re: Hello Rhino Users To : netscape.public.mozilla.jseng From : Mark Turansky Date : Tue Apr 19 2005 12:42 pm Yes, you can import library code. If all scopes share common code, then create a common scope and create the new scopes (for execution from it). Context context = Context.enter(); ScriptableObject sharedScope = context.initStandardObjects(); //execute your shared js scripts in this sharedScope context.evaluateString(sharedScope, source, "name", 1, null); //create new scopes from the sharedScope... //all new scopes will share the library code executed above Scriptable scope = context.newObject(sharedScope); There may be better ways of doing it, but the above snippet has worked for me well. It will hopefully give you something to start with. You can figure out what's best for you. Read more about "scopes" in the documentation to figure out the best way to share code. "DannyTwo" wrote in message news:1113921540.674975.294070@l41g2000cwc.googlegroups.com... > I'm totally totally new in this kind of animal-project XD, and I've > some questions i order to clear my mind. > > Is it possible to 'import' several javascript libraries js in the same > execution of Rhino, accesing to all the functions defined? > > Althoutg i've been reading documentation but always It's better expert > opinions, there are no problems running Rhino in a 1.3 jre, are there? > > Ok, for my first thread are enough questions, XD > > Thanks for help, > > Danny2 > .