Core Java for the Impatient

Cay Horstmann

Software Installation Instructions

The Java Development Kit

  1. Visit https://adoptium.net/
  2. Select Latest LTS Release
  3. Windows/Mac OS: The installer will be downloaded. Run it.
  4. Linux: Uncompress the .tar.gz file to a convenient place (such as your home directory or /opt). Add the bin subdirectory to your PATH—see these directions.
  5. To test your installation, open a terminal window and type
    javac -version
    You should get a response such as
    javac 21.0.15

Note: You can use the book with any Java Development Kit, from Adoptium to Zulu. The JDK from Oracle is fine too for learning, but it has more restrictive licensing conditions for deployment.

Eclipse

  1. Visit http://www.eclipse.org/downloads
  2. Select the Eclipse IDE Installer
  3. Run the installer. (In Linux, you need to uncompress the downloaded file first.)
  4. Select the Eclipse IDE for Java Developers
  5. Launch Eclipse.
  6. Download and unzip the book's companion code in a convenient place.
  7. In Eclipse, select File → Projects → New Project
  8. In the project wizard, select Java → Java Projects and click on Next
  9. In the Project Name field, type Java for the Impatient
  10. Uncheck the Use the default location checkbox and browse to the src subdirectory of the javaimpatient directory
  11. Click Finish

Note: Nothing in the book depends on Eclipse. If you prefer, you can use another IDE. Popular choices include