Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13110
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Lew <lewbloch@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Eclipse - NoSuchMethodError: main |
| Date | Wed, 21 Mar 2012 13:41:09 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 31 |
| Message-ID | <15830333.3.1332362469516.JavaMail.geo-discussion-forums@pbcuk5> (permalink) |
| References | <jkcntd$sf1$1@theodyn.ncf.ca> |
| NNTP-Posting-Host | 69.28.149.29 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1332362559 31702 127.0.0.1 (21 Mar 2012 20:42:39 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Wed, 21 Mar 2012 20:42:39 +0000 (UTC) |
| In-Reply-To | <jkcntd$sf1$1@theodyn.ncf.ca> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T |
| User-Agent | G2/1.0 |
| Xref | csiph.com comp.lang.java.programmer:13110 |
Show key headers only | View raw
William Colls wrote: > I think this is really an Eclipse problem. Nope. > When I try to run my program, I get the error message > > NoSuchMethodFound: main > > The file does in fact contain a main method, declared as public static > void, with no arguments. It's a programmer problem. > I suspect that Eclipse is looking in the wrong place for the method, but > in every place that I can find in the various configurations, the file > that I am running is identified as the file containing containing the > main() method. > > Any suggestions as to where further to look will greatfully [sic] received. Jussi and markspace explained the problem. I will generalize the answer for you: Do not suspect Eclipse first. Do not suspect Java first. Always suspect the programmer first. -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Eclipse - NoSuchMethodError: main William Colls <william.colls@rogers.com> - 2012-03-21 10:17 -0400
Re: Eclipse - NoSuchMethodError: main Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2012-03-21 16:41 +0200
Re: Eclipse - NoSuchMethodError: main markspace <-@.> - 2012-03-21 08:18 -0700
Re: Eclipse - NoSuchMethodError: main Lew <lewbloch@gmail.com> - 2012-03-21 13:41 -0700
Re: Eclipse - NoSuchMethodError: main Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-03-21 20:46 -0400
Re: Eclipse - NoSuchMethodError: main Arne Vajhøj <arne@vajhoej.dk> - 2012-03-21 21:00 -0400
Re: Eclipse - NoSuchMethodError: main BGB <cr88192@hotmail.com> - 2012-03-21 21:59 -0700
Re: Eclipse - NoSuchMethodError: main Patricia Shanahan <pats@acm.org> - 2012-03-22 03:13 -0700
Re: Eclipse - NoSuchMethodError: main Arne Vajhøj <arne@vajhoej.dk> - 2012-03-22 21:46 -0400
Re: Eclipse - NoSuchMethodError: main Lew <lewbloch@gmail.com> - 2012-03-22 18:49 -0700
Re: Eclipse - NoSuchMethodError: main Gene Wirchenko <genew@ocis.net> - 2012-03-22 22:17 -0700
Re: Eclipse - NoSuchMethodError: main William Colls <william.colls@rogers.com> - 2012-03-23 09:36 -0400
Re: Eclipse - NoSuchMethodError: main Lew <noone@lewscanon.com> - 2012-03-23 07:51 -0700
Re: Eclipse - NoSuchMethodError: main Patricia Shanahan <pats@acm.org> - 2012-03-23 08:49 -0700
Re: Eclipse - NoSuchMethodError: main Jan Burse <janburse@fastmail.fm> - 2012-03-23 18:05 +0100
csiph-web