Subj : Rhino Cannot find a Property Defined in a Java Class To : netscape.public.mozilla.jseng From : ben_curren@intuit.com (Ben) Date : Wed Feb 25 2004 04:31 pm Can someone tell me what is wrong with the following code? For some reason the property IsSampleCompany cannot be found. What am I doing wrong? Thanks for anyones help. The Java Script: ---------------- something The Java Code (ActiveXObject.java): ----------------------------------- public class ActiveXObject extends ScriptableObject { protected String object; public ActiveXObject() { } public ActiveXObject( String object ) { this.object = object; } public static Scriptable jsConstructor(Context cx, Object[] args, Function ctorObj, boolean inNewExpr) { return new ActiveXObject( (String)args[0] ); } public Object jsFunction_Create(String object) { return new QBPreferences(); } public String getClassName() { return "ActiveXObject"; } } The Java Code (QBPreferences.java): ----------------------------------- public class QBPreferences extends ScriptableObject { public QBPreferences() { } public void jsConstructor() { } public boolean jsGet_IsSampleCompany() { // This method is not found return true; } public String getClassName() { return "QBPreferences"; } } The Java Code ------------- // In the main function I call this ScriptableObject.defineClass( scope, ActiveXObject.class ); ------------------------------------------------------------------------------- Any ideas why the method jsGet_IsSampleCompany() is not being called? I debugged and found that the get method in QBPreferences parent (ScriptableObject) returns NOT_FOUND. Any help is greatly appreciated. Thanks, Ben .