It sounds like you're running your program from inside an IDE. Your program may be error-free, but the DOS window quickly disappears because the lifetime of your program is so short.
You can do as jnicho suggested and go to a DOS prompt (if you're on Windows, go to Start->Programs->MS-DOS Prompt) and execute your program from the command line.
Another thing you can do is make your program sleep before terminating so that you have time to look at its output:
public class Class1 implements Runnable
{
private Thread t;
public void run(){}
private void wait_for_me_to_see_output()
{
t=new Thread(this);
t.start();
try {
t.sleep(5000);
} catch (InterruptedException e) {}
}
public static void main (String[] args)
{
Class1 c1=new Class1();
// Insert relevant program stuff here
System.out.println("testing..."

;
c1.wait_for_me_to_see_output();
}
} [sig]<p>Russ<br><a href=mailto:bobbitts@hotmail.com>bobbitts@hotmail.com</a><br><a href=
is in</a><br>[/sig]