On Aug 17, 11:27 am, Francisco Tolmasky <[EMAIL PROTECTED]> wrote:
> I am trying to use the rhinocompilerto turn my scripts in
> to .classes as explained 
> inhttp://developer.mozilla.org/en/docs/Rhino_JavaScript_Compiler.
> I have been pretty successful in accomplishing this with single files,
> but am running into trouble when I have two or more files (such as one
> file that would include another).  For example, say I have:
>
> utilities.js
> actual.js
>
> if I compile both down to utilities.class and actual.class
> (respectively), all references in actual to functions in utilities
> fail.  I've tried including the location of utilities.class to the
> classpath but this didn't work.  I also tried doing
> importClass(utilities) and this also failed.  Is there any way to do
> this?

I forgot to menton that I have also tried the above options with the
Packages. prefix with no success.  To give a "code example", this is
essentially what I want to be able to do:

utilities.js
function do_stuff() { ... }

actual.js
import_somehow(utilities)

do_stuff();


_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to