This may be a silly question but I’ve just downloaded Rhino on my Windows 7 machine and I’m trying to run some of the examples. However, it says package org.mozilla.javascript does not exists
Here’s the exact context (running through Git Bash)
Mike@WORK-MACHINE /c/users/mike/documents/rhino/examples
$ javac RunScript.java
RunScript.java.7: package org.mozilla.javascript does not exist
... Error stuff ...
6 errors
What am I doing wrong here?
It’s likely you’ve missed a directory from your classpath. Try something like the following:
java -cp /some/dir/ RunScript.javawhere
/som/dir/contains the definition of the package you need.