Problems loading a precompiled class

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problems loading a precompiled class

tag-2
I'm having some trouble loading a java class generated by rhino's jsc.
I wasn't quite able to extrapolate from the documentation how to go
about it, so I came up with a quick nasty hack...but it doesn't work
either!

The hack:

                Script compiledScript = cx.compileString
                    ( "loadClass('" + script + "')", scriptName, 1,
null );
                compiledScript.exec(cx, scope);

The problem:
    loadClass isn't defined in that scope!

_______________________________________________
mozilla-jseng mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-jseng