I’m trying to access non-static methods in a java applet, through javascript.
I access static methods using the Syntax AppletName.Packages.className.methodName(); and it works.
If I try to access a non-static member/method via JavaScript, I get an error “Error calling method on NPObject“, but nothing on the Java Console.
Is there a way to access non-static applet methods from Javascript?
You need to instantiate a java object, then you can call your methods.
From here.