View Single Post
Old Jul 23rd, 2006, 1:30 AM   #4
quantalfred
Newbie
 
Join Date: Jan 2005
Posts: 21
Rep Power: 0 quantalfred is on a distinguished road
Quote:
Originally Posted by Eric the Red
Please post what you have so far. Also, include the line number of where the error occurs.
public class test2{
	public void main(String [] Args){
		System.out.println("hi");
	}
}
in the file test2.java
and
public class test1{
	public static void main(String [] Args){
		test2 aa;
		String[] arg;
		aa.main(arg);
	}
}
in the file test1.java.

test2.java can be compiled but not executed. When test1.java is compiled, the error is what I just posted in my first post.
quantalfred is offline   Reply With Quote