Friday, January 20, 2012

How to compile and run a java program

Open a terminal window in ubuntu or command prompt in windows, then type the commands below.


To compile the file
javac FileName.java

To run the file
java FileName

Please refer how to save a java program.

No comments :

Post a Comment