Java Reference
In-Depth Information
Figure 2-2 Typing the HelloJava Program
Once the program is typed into the editor, it must be saved with the
same name as that used in the driving class, in this case, HelloJava. The
text file that contains the program code is called the source file . In Java,
the source file must have the extension .java. Therefore, the program is
saved as
HelloJava.java
Remember that the capitalization must be the same in the name of the
source file, as in the name of the driving class. Also note that Java ignores
white space in text formatting, but spaces inside a name are not ignored.
Hello Java and HelloJava are different names.
The Java program development software that comes with the JDK must
be run from the MS DOS command line. If you have correctly entered the
PATH and CLASSPATH commands in your autoexe.bat file, as described in
Appendix A, the system will be able to locate the development software
without having to type in the path specification.
 
Search WWH ::




Custom Search