Subj : Re: Calling Java from JavaScript To : ab1789 From : Igor Bukanov Date : Tue Feb 15 2005 11:57 pm ab1789@sbc.com wrote: > OK - that seems reasonable. I really want to call this from the Rhino > shell - should it work ? > > When I try that I get this error instead: > > js: "", line 1: uncaught JavaScript exception: TypeError: > [JavaPackage foobar.Foo.hello] is not a function. (; line 1) > The error indicates that Rhino was not able to find foobar.Foo class. Make sure that foobar.Foo is on your classpath when you invoke Rhino shell. Regards, Igor .