Your First Java Program

Now that you have learned something about Java and installed development software, you're ready to start working with the language.

Before you do, you might want to take note of the most likely source of problems you'll run into—errors caused by a misconfigured SDK.

Appendix A, "Configuring the Software Development Kit," is a short tutorial for Windows users on how to use MS-DOS and correct errors in how the SDK is set up. See the appendix if you have problems compiling and running the first several examples from Day 1 and Day 2 on a Windows system—especially if you run into "bad command or filename" errors and "NoClassDefFound" errors.

Tip

You also might want to read the appendix simply to learn a few MS-DOS commands. ...

Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.