Exception in thread "main" java.lang.NoSuchMethodError -


possible duplicate:
causes of 'java.lang.nosuchmethoderror: main exception in thread “main”'

i got error after added method called setconstraints in generator.class.im free error when compiled. error: exception in thread "main" java.lang.nosuchmethoderror: rtg.generator.setconstra ints(ljava/util/arraylist;)v @ rtg.defaultprompt.main(defaultprompt.java:117)

this method of setcostraints() in generator.java

private arraylist<string> constraints_list = new arraylist<string>(); private boolean constr = false; public void setconstraints(arraylist<string> c)     {         constraints_list = c;         constr = true;     } 

this class using generator.class

public class defaultprompt {   public static void main()   {          generator gen = new generator();       gen.setconstraints(constraints_list);   } { 

both classes r in same package.before added setconstraints, no error.

anyone knows how/why happen?

sounds class not re-compiled after added method. happens in environments. try deleting .class files in directory , re-compiling again.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -