如何 运行(或构建 运行?)这个 Mozilla Rhino 调试器?

How to run (or build then run?) this Mozilla Rhino Debugger?

想尝试 this Rhino Debugger 但是有问题

根据文档,我从 here 下载了最新版本,上面写的很简单 运行:

java org.mozilla.javascript.tools.debugger.Main [options] [filename.js] [script-arguments]

然而..它是源代码,所以我可能需要先构建它...(除非那里有预编译的下载?)。假设我需要构建它来获取调试器的 jar 文件,我假设只在根目录中构建 build.gradle 文件。还是 运行 gradle tasks build ?当我这样做时,出现错误:

Execution failed for task ':checkstyleMain'.Unable to create a Checker: configLocation {C:\rhino\rhino-1.7.8\checkstyle.xml}, classpath {C:\rhino\rhino-1.7.8\buil dGradle\classes\java\main;C:\rhino\rhino-1.7.8\buildGradle\resources\main}.

所以..我有点迷路了。自从我与 Java 合作已有十年,但希望我遗漏了一些简单的东西。

有没有经验丰富的 Rhino Java脚本开发人员可以为我指明正确的方向?我应该坚持使用 Eclipse 吗? (如果它有效,但我仍然对这个调试器感到好奇)

从您提供的link下载最新的犀牛,此时是"rhino-1.7.8.zip"。解压缩并将目录更改为 "rhino1.7.8/lib";您需要 CLASSPATH 中的 "rhino-1.7.8.jar"。假设您在 "rhino1.7.8/lib" 中,它应该在您当前的文件夹中,然后您可以执行

java -cp rhino-1.7.8.jar org.mozilla.javascript.tools.debugger.Main

应该呈现为