aspose file tools*
The moose likes Beginning Java and the fly likes java.lang.NoSuchMethodError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.lang.NoSuchMethodError" Watch "java.lang.NoSuchMethodError" New topic
Author

java.lang.NoSuchMethodError

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
Exception in thread "main" java.lang.NoSuchMethodError: main
Engin Okucu
Ranch Hand

Joined: Feb 09, 2002
Posts: 174
This exce^tion is thrown because you don't have a correct method main() in your application,even if you don't have a method main you compile whithout problem but it will not guarantee you can run it :

public class abc {
public static void main(String args[]) {
System.out.println("now OK");
}
}
 
jQuery in Action, 2nd edition
 
subject: java.lang.NoSuchMethodError