I've searched and can't really find any documentation on using importPackage() or importClass() from an ecmascript to access an arbitrary class, preferably stored in a jar. I'm testing with js.jar from rhino1_6R7.
executing command similar to importPackage(com.foo.bar); returns an error that "com" is not defined. The same error occurs with the actual package name. Using the command importClass(SimpleDataBlock); returns an error that SimpleDataBlock is not defined. Any pointers? Thanks Chad _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
