同步操作将从 Arthur/OnJava8书本实例 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
To compile and run these programs, you only need JDK 8 installed.
Invoking gradlew
will automatically download and install Gradle.
Gradle will also install all additional libraries necessary to compile
and run the Java examples in the book.
To compile and run everything, the command is:
gradlew run
If you are on a Unix/Linux based system, you must select the local directory for all commands, for example:
./gradlew run
To only compile everything, the command is:
gradlew compileJava
To compile only a single chapter (including dependencies), use for example:
gradlew :strings:compileJava
To run only a single chapter, say:
gradlew :strings:run
Gradle can also be used to run a single program. Here, we run the ReplacingStringTokenizer.java program in the strings chapter subdirectory:
gradlew :strings:ReplacingStringTokenizer
However, if the file name is unique throughout the book (the majority are), you can just give the program name, like this:
gradlew ReplacingStringTokenizer
Note that all commands are run from the base directory where the example code is installed, and where you find the
gradlew
script.
You can learn about other options by just typing gradlew
with no arguments.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。