Subj : Re: Problem with 'defineClass'. To : netscape.public.mozilla.jseng From : Martin Honnen Date : Mon Apr 18 2005 02:55 pm Christopher M. Balz wrote: > Why would the js interpreter in Rhino (lRhino 1.6 > release 1 2004 11 30) give the following error message > (note that Rhino JS is working as demonstrated by the > call to 'print')? > > js> print("Hi"); > Hi > js> load("c:/Program > Files/Java/lib/interpreters/rhino1_6R1/examples/jsdoc.js") > js: "C:\Program > Files\Java\lib\interpreters\rhino1_6R1\examples\jsdoc.js", > line 46: Class "File" not found. What does line 46 in jsdoc.js look like? Does it try to load a Java class that is not in the classpath? Is that jsdoc.js from the Rhino examples? Then I think the line is defineClass("File") so you need to make sure the directory with File.class is on the classpath when you run the shell. -- Martin Honnen http://JavaScript.FAQTs.com/ .