View Single Post
Old Apr 6th, 2008, 12:31 AM   #2
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 245
Rep Power: 1 Jabo is on a distinguished road
Re: Java on a large scale...

for a Java program to run alone, within the program class, it should have a main function or method just like in C++. To compile the program, you need to go to command prompt, browse to the directory where your class file is, and enter "javac Class.java" at the command prompt; whereas Class.java is the name of your class file. Once it compiles without error, you can run the program with "java Class.class" at the command prompt.
More info

Last edited by Jabo; Apr 6th, 2008 at 12:43 AM.
Jabo is offline   Reply With Quote