Using a Command-Line Interface

The Java Software Development Kit requires the use of a command line to compile Java programs, run them, and handle other tasks.

A command line is a way to operate a computer entirely by typing commands at your keyboard, rather than by using a mouse.

Very few programs designed for Windows users require the command line today. To get to a command line on a Windows 98 or 95 system, click the Start button, choose Programs, and then click MS-DOS Prompt on the Windows taskbar, as shown in Figure A.1. On a Windows NT or 2000 system, click Start, Programs, Command Prompt. A new window opens where you can type commands.

Figure A.1. Finding a command line from the Windows taskbar.

The command line in Windows uses MS-DOS, ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.