Java For Dummies, 7th Edition
by Barry Burd

If you have the 6th edition, please visit Java ForDummies, 6th Edition.

For earlier editions, visit my main page.

Download the book's code for use with Eclipse or with NetBeans
Download the book's code for use with IntelliJ IDEA
See the solutions to the book's Try It Out exercises!

Note: If you're reading this book before July 27, 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

Chapter Notes:

Click a Chapter branch to expand or collapse that chapter.
Alternatively, you can Expand all or Collapse all.