On Dec 22, 12:48 pm, Tyler <[email protected]> wrote:
...
> When I execute the script (see below) using the Rhino Shell (java -jar js.jar 
> emailtest.js) I receive
...

OK, I knew as soon as I posted I would figure out a way to make it
work - I'm sorry for the chatter, but hopefully this will be useful to
someone else.

The Rhino documentation clearly states that the -jar option messes
with the class path (http://www.mozilla.org/rhino/scriptjava.html).
At this time, I don't really understand what it does or how to work
around it - since my importPackage commands didn't fail (but would if
I put a dummy name in).  However, all I did to make it work was
replace the "java -jar js.jar" command with java -cp js.jar;mail.jar
org.mozilla.javascript.tools.shell.Main emailtest.js" and it worked.

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

Reply via email to