I have the following class in a file test.class.  The file is in the
CLASSPATH.

package testpackage;
public class Test
{
        public Test()
        {
        }

        public String getTest()
        {
                return "testing";
        }
}

>From Rhino, I just want to go:

var x = new Packages.testPackage.Test();

I keep getting: TypeError: [JavaPackage testpackage.Test] is not a
function, it is object.

No matter what I try, importClass, importPackage, or just namespacing
the Packages.* hierarchy, I can't seem to load this damn class.

Any insights are greatly appreciated.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to