Java Reference
In-Depth Information
APPENDIX
D
C ompiling and R unning J ava
P rograms U sing the C ommand
P rompt W indow
Some programmers compile and run Java programs in the Command
Prompt window. Unlike the TextPad software used in this topic, many text
editors — such as Microsoft's Notepad program — can be used to edit Java
source code but have no command to compile source code or run pro-
grams. In that case, after saving the program in Notepad with the exten-
sion .java, you would enter the Java SDK compile and run commands
explicitly using the Command Prompt window. In some cases, program-
mers must set environmental variables in order to successfully compile and
run Java programs using the Command Prompt window.
Search WWH ::




Custom Search