Running an Application
Once your code is compiled, you can execute the application using the java virtual machine.
To do so, you type the following in the same directory:
java filename
Try it out by compiling and running the Test application.
Don't forget that you have to make two .java files.
One will be Annoucner.java and the other will be Test.java.
NEXT
Selena Sol contributes to the JavaBoutique's Introduction to Java. Selena curently works for Barclays Capital in London, one of the leading global investment banks in Europe and has worked as a software developer for the National Center for Human Genome research, Microline Software, Neuron Data, and Electric Eye in Singapore. Selena is perhaps best-known for creating the Public Domain Web Script Archive (Extropia) and writing several books on Web Programming (Perl, CGI, Java).
Email: selena@extropia.com
|