Subj : Calling Java from JavaScript To : netscape.public.mozilla.jseng From : Andrew Date : Mon Feb 14 2005 11:39 pm Can anyone explain how to call a Java class method from Rhino JavaScript? The class is one I have written myself. Where does my class have to be ? What is the syntax of the importClass or ImportPackage call How do I call the method itself For instance, My class is Foo: package foobar; public class Foo { public static void hello() { System.out.println("Hello World") ; } } and I want to call hello() from JavaScript. Thanks -- andrew .