GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Rudy-debug/OnJava8-Examples: Code Examples for the book "On Java 8"

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

506 Commits
506 Commits

Folders and files

NameName
Last commit message
Last commit date
annotations
annotations
 
 
arrays
arrays
 
 
buildSrc/src/main
buildSrc/src/main
 
 
collections
collections
 
 
collectiontopics
collectiontopics
 
 
com/mindviewinc/simple
com/mindviewinc/simple
 
 
compression
compression
 
 
concurrent
concurrent
 
 
control
control
 
 
enums
enums
 
 
equalshashcode
equalshashcode
 
 
exceptions
exceptions
 
 
files
files
 
 
functional
functional
 
 
generics
generics
 
 
gradle
gradle
 
 
hiding
hiding
 
 
housekeeping
housekeeping
 
 
innerclasses
innerclasses
 
 
interfaces
interfaces
 
 
iostreams
iostreams
 
 
javadoc
javadoc
 
 
lowlevel
lowlevel
 
 
newio
newio
 
 
objects
objects
 
 
onjava
onjava
 
 
operators
operators
 
 
patterns
patterns
 
 
polymorphism
polymorphism
 
 
references
references
 
 
reuse
reuse
 
 
serialization
serialization
 
 
standardio
standardio
 
 
staticchecking
staticchecking
 
 
streams
streams
 
 
strings
strings
 
 
typeinfo
typeinfo
 
 
validating
validating
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Copyright.txt
Copyright.txt
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
build.gradle
build.gradle
 
 
checkstyle.xml
checkstyle.xml
 
 
chkstyle.bat
chkstyle.bat
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

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.

About

Code Examples for the book "On Java 8"

www.OnJava8.com

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.