3.5.2 Compiling the application |
The java compiler is called javac.
Move to the same directory that you saved HelloWorld.java into and execute the following command:
javac HelloWorld.javaThe Java compiler will now compile the HelloWorld.java file. If there are any errors the Java compiler will list the line number and describe the errors. If you have any errors correct them and rerun the compiler.
Once the compile is successful you will find you now have a HelloWorld.class
file. This is the compiled class file generated from the HelloWorld.java
file.