[ajug-members] why? NoSuchMethodError: main
Jesse Barnum
jsb_ajug at 360works.com
Fri Aug 10 13:04:07 EDT 2007
This is correct - just wanted to supply the reference in the Java
Language Specification:
http://java.sun.com/docs/books/jls/third_edition/html/
execution.html#12.1.4
--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293
On Aug 9, 2007, at 12:28 PM, Jeremy Haile wrote:
> It needs to be "public static void main(String[] args)"
>
> Cheers,
> Jeremy
>
>
> On Thu, 9 Aug 2007 12:24:51 -0400, "Tim Watts" <timtw at earthlink.net>
> said:
>> 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
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
More information about the ajug-members
mailing list