Beginning Programming with Java For Dummies, 5th Edition

by Barry Burd

For earlier editions, visit my main page.

If you have the 4th edition, please visit Beginning Programming with Java For Dummies, 4th Edition.

For earlier editions, visit my main page.

Download the code!

See the solutions to the book's Try It Out exercises!

Download GUI versions of many of this book's examples (as an Eclipse workspace)

Note: If you're reading this book before October, 2017, you might not have Java 9, which includes JShell. If you want to run JShell, install the Java 9 early release version on your computer. You can get the early release version by visiting http://www.oracle.com/technetwork/java/javase/downloads/ and looking for the Early Access Releases download button.

Eclipse with Java 9 on a Mac

As of August 2017, some Mac users are having trouble running Eclipse if Java 9 is installed on their computers. Here's how to fix the problem:
  1. Open a Finder window.
  2. In the menu bar, select Go->Go to Folder.
  3. In the resulting dialog box, type /Library/Java/JavaVirtualMachines, and then click Go.
  4. In the Finder window, look for a folder named jdk-9.jdk (or something like that, with "9" in it).
  5. Drag that folder to another place on your computer's hard drive -- to the Documents folder, for example.
  6. Revisit java.oracle.com/javase and download/install the JDK for Java 8.
If you follow these steps, Eclipse will launch with Java 8 instead of trying to launch with Java 9. If you want to try the Java 9 JShell, visit your moved JDK-9 folder and drill down to the Contents/Home/bin directory. In that directory, you'll find the jshell program.

Talk to me:

Tweets by @allmycode

How to create your own Javadoc pages