On Oct 16, 2:32 am, Dollyn <[EMAIL PROTECTED]> wrote: > I hava a Class A and a public static void a(); > > and I want to used this method in the script. > > I tryed to import the package, but it always tell me "can not find the > method. > > Thanks.
Well to expose static method you should prefix your java method with "jsStaticFunction_". In your case, the java method in class A should be: "public static void jsStaticFunction_a()" Have fun. - Trib' _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
