See the solutions to the book's Try It
Download GUI versions of
many of this book's examples (as an Eclipse workspace)
If you use Eclipse and you create your own project, you may be
prompted to make up a Module Name. The safest thing to do is to click
the Don't Create button. If you make up a name and click the Create
button, Eclipse might refuse to run your code. (Modules can't contain
files that aren't in named packages. So, if you haven't gotten around to
putting your files in named packages, your code won't run.)
One way or another, if your project contains a file named module-info.java,
delete that file.
The best place to get the Java JDK is https://adoptopenjdk.net.
I suggest downloading Java 11, but almost any version of Java should