I am using Java 7, and I have the following code that uses the
jsondiffpatch Javascript library:
If you look at line 48 of
jsondiffpatch.js (the uncompressed version of jsondiffpatch.min.js), you can see it references another module:
When executing the Java code, the "engine.eval(reader)" line can't find package.json and throws the following exception:
The jsondiffpatch.min.js file is located in the webclient/common/js directory, and the package.json file is located in the webclient/common directory.
The "logger.debug" line printed out the following for the current working directory:
So I tried copying the package.json file to the /usr/local/project/version directory, and I still got the same exception.
Why can't the ScriptEngine find the package.json file?