Running Example Programs

This chapter provides step-by-step instructions of writing a Java program using a text editor, and then compiling and running this program from command prompt. Several Integrated Development Environments (IDEs) are mentioned in this chapter. We have already installed NetBeans. That and Eclipse are the most popular in Java professional practice.

5. Step 3: Start a command window and Notepad


Answer:

SHIFT-right-click in the right panel

Step 3: Start a command window and Notepad

Figure07-8command

Put the mouse cursor in the right panel of the Explorer window. Make sure no file names are highlighted. Left-click in a blank space in the window to un-highlight any file. (If you just created the folder, there will be no files, so this is not needed.)

SHIFT-RIGHT-click in the window.

A menu will pop up. Click on "Open Power-shell window here". (Depending on your revision of Windows, this may be some other similar command window.)

Figure07-9power

The command prompt is the part PS C:\JavaSource>

In this minimalist environment, you enter commands to the OS by typing them after this prompt. To start Notepad, type notepad after the prompt. Hit "enter".

Figure07-10notepad

Question 6:

What is the clipboard in Windows?