Start a MS-DOS command window.For PCs running Windows NT 
choose Start/Programs/Command Prompt from the Windows NT desktop.For PCs running Windows 95, 
choose Start/Shut Down/Restart in MS-DOS Mode from the Windows 95 desktop.Now, change to the directory of your choice from within the command window. 
For example: 
>cd \Temp Create some Java source code with Notepad from within the command window. 
For example, suppose we want a class named "A", 
    then we would start Notepad with the name of the Java file: 
>notepad The source code,, might look like this: