[ajug-members] why? NoSuchMethodError: main

ashish butani abutani at hotmail.com
Thu Aug 9 12:53:39 EDT 2007


I think main method should return void, so it should be
 
public static void main(String[] args) {
Thanks
Ashish Butani
 



> From: timtw at earthlink.net> To: ajug-members at ajug.org> Date: Thu, 9 Aug 2007 12:24:51 -0400> Subject: [ajug-members] why? NoSuchMethodError: main> > Hi,> > I'm getting this when I run my utilty:> > Exception in thread "main" java.lang.NoSuchMethodError: main> > The class has:> > public static int main(String[] args) {> return new MakeConfigs.doMain(args);> }> > The class is public:> > public class MakeConfigs {...> > And it's in the classpath (otherwise I wouldn't even get this error, of > course).> > I tried java -verbose... and it just tells me what jar it found the class in. > I'm running under jdk 1.5, it's compiled for 1.4> > Any ideas what could be going on? > _______________________________________________> ajug-members mailing list> ajug-members at ajug.org> http://www.ajug.org/mailman/listinfo/ajug-members
_________________________________________________________________
See what you’re getting into…before you go there
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20070809/4e650d0c/attachment.html 


More information about the ajug-members mailing list