Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 4 General Forum
Date: Thu Oct 4 2001 9:35 pm
Author: Cipriani, Jason A. <jac4@andrew.cmu.edu>
Subject: Re: java.lang.NoSuchMethodError

that means that you haven't declared a main method in the class you are trying to "run".

you must have a function called "main" which is declared as "public static void" and takes an array of Strings as an argument defined in your class.

like:

public static void main (String [] args) {
...
};
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
java.lang.NoSuchMethodError      Shi, Ying      Thu Oct 4 2001 9:12 pm       
Re: java.lang.NoSuchMethodError      Cipriani, Jason A.      Thu Oct 4 2001 9:35 pm       
Re: java.lang.NoSuchMethodError      Shi, Ying      Fri Oct 5 2001 12:30 pm       
Re: java.lang.NoSuchMethodError      Detwiler, Jay T.      Fri Oct 5 2001 6:17 pm       

Back to previous screen