Compiling and Executing Your First Java Application

We assume you’re using the Java Development Kit’s command-line tools, not an IDE. Our Java Resource Centers at www.deitel.com/ResourceCenters.html provide links to tutorials that help you get started with several popular Java development tools, including NetBeans™, Eclipse™ and others. We’ve also posted an Eclipse video at www.deitel.com/books/AndroidHTP2/ to help you get started using this popular IDE.

To prepare to compile the program, open a command window and change to the directory where the program is stored. Many operating systems use the command cd to change directories. On Windows, for example,

cd c:\examples\appA\figA_01

changes to the figA_01 directory. ...

Get Android™ How to Program, 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.