[英]How to run (or build then run?) this Mozilla Rhino Debugger?
Would like to try this Rhino Debugger however having problems想尝试这个 Rhino Debugger但是有问题
I downloaded latest from here according to doc it says just simply run:我根据文档从这里下载了最新的,它说只需运行:
java org.mozilla.javascript.tools.debugger.Main [options] [filename.js] [script-arguments]
however..it's source code, so I probably need to build it first...(unless there are precompiled download out there?).然而..它是源代码,所以我可能需要先构建它......(除非那里有预编译的下载?)。 Assuming I need to build it to get the jar file for debugger, I assume just build the build.gradle file at the root dir.
假设我需要构建它来获取调试器的 jar 文件,我假设只在根目录中构建 build.gradle 文件。 Or run
gradle tasks build
?或者运行
gradle tasks build
? When I do that I get error:当我这样做时,我收到错误:
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}.
任务 ':checkstyleMain' 执行失败。无法创建检查器:configLocation {C:\\rhino\\rhino-1.7.8\\checkstyle.xml},类路径 {C:\\rhino\\rhino-1.7.8\\buil dGradle\\classes \\java\\main;C:\\rhino\\rhino-1.7.8\\buildGradle\\resources\\main}。
So..I'm a bit lost.所以..我有点失落。 Been ten years since I've worked with Java, but hopefully I'm missing something simple.
我使用 Java 已经十年了,但希望我错过了一些简单的东西。
Any experienced Rhino JavaScript devs out there that can point me in the right direction?任何有经验的 Rhino JavaScript 开发人员可以为我指明正确的方向吗? Should I just stick with using Eclipse?
我应该坚持使用 Eclipse 吗? (Had that working, but I'm still curious about this debugger)
(有这个工作,但我仍然对这个调试器很好奇)
Download the latest rhino from the link you provided, at this time it is "rhino-1.7.8.zip".从你提供的链接下载最新的rhino,此时是“rhino-1.7.8.zip”。 Unzip that and change directory to "rhino1.7.8/lib";
解压并将目录更改为“rhino1.7.8/lib”; you need the "rhino-1.7.8.jar" in your
CLASSPATH
.您需要
CLASSPATH
的“rhino-1.7.8.jar”。 Assuming you are in "rhino1.7.8/lib" that should be in your current folder, and you can then do假设您在当前文件夹中的“rhino1.7.8/lib”中,然后您可以执行
java -cp rhino-1.7.8.jar org.mozilla.javascript.tools.debugger.Main
Which should render like哪个应该渲染
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.