class JSRhinoScriptEngine implements IScriptEngine {

    @Override
    public void compile(String scriptName, String programStr) throws ScriptLoadException {
        String fileDir = this.getRelativeFileDir(scriptName);

        programStr = "/*define global variable for relative dir path*/var relDir = \"" + fileDir + "\";\n" + programStr;

        //this.cx.evaluateString(scope, programStr, scriptName, 1, null);

        //compile string
        Script script = this.cx.compileString(programStr, scriptName, 1 - 2, null);

        this.scripts.put(scriptName, script);
    }

    public  JSRhinoScriptEngine();

}