Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #7292

Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!216.196.98.146.MISMATCH!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Mon, 22 Aug 2011 10:37:59 -0500
Date Mon, 22 Aug 2011 08:37:56 -0700
From Patricia Shanahan <pats@acm.org>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction?
References <k4u357dqe5lejh08eiadvd2ad2kji1ivho@4ax.com> <1fv357lfcf4soqtqumnb55fm7vkme9mc03@4ax.com>
In-Reply-To <1fv357lfcf4soqtqumnb55fm7vkme9mc03@4ax.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <VLGdnUuKeKlK6s_TnZ2dnUVZ_jidnZ2d@earthlink.com> (permalink)
Lines 26
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 70.230.204.158
X-Trace sv3-Gn9GCJmtOAfWcs0sbdBIYD/+Zc9mK2k/i+q/yBY4f7v1nIFIm2t/jDWA54Y6iB+TRnDISoLYRM5KHxa!vg/p1iX3bTS/dDQHg/QlLZT2K+KCEgUDr+h7+/hT2s9vS2oO8uWX63LsY1/Sdrfi+QtRNdlOXVdt!+BkmCi9I9YvRJ6siO+TIUPqU3dEg1s4nigJfO86KRYwX9RU=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2134
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7292

Show key headers only | View raw


On 8/21/2011 11:58 PM, Roedy Green wrote:
> On 21 Aug 2011 17:41:53 GMT, ggal@osgitest.org (Gianni Galore) wrote,
> quoted or indirectly quoted someone who said :
>
>> package aaa.bbb;
>>
>> public static void main( String[] args) {
>>   System.out.println("hello");
>> }
>>
>>
>
> It is best to post everything. The problem most often is in the stuff
> you don't post, in this case your class definition.
>
> see http://mindprod.com/jgloss/helloworld.html

I think he did post the whole thing, and there is no class declaration.

The compiler seems to be totally confused, which would be consistent
with that. It would not even be considering a method declaration. It
looks as though its last try was to parse it as an annotation, which can
appear before the first class declaration.

Patricia

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-21 23:56 -0700
  Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Roedy Green <see_website@mindprod.com.invalid> - 2011-08-21 23:58 -0700
    Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Patricia Shanahan <pats@acm.org> - 2011-08-22 08:37 -0700
      Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Lew <lewbloch@gmail.com> - 2011-08-22 08:56 -0700
        Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-08-22 09:15 -0700
          Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Roedy Green <see_website@mindprod.com.invalid> - 2011-08-22 10:02 -0700
            Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? markspace <-@.> - 2011-08-22 10:50 -0700
            Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Arne Vajhøj <arne@vajhoej.dk> - 2011-08-23 19:03 -0400
        Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? markspace <-@.> - 2011-08-22 10:48 -0700
  Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-22 07:34 -0700
  Re: Locale.getDefault bug in JDK 1.7 markspace <-@.> - 2011-08-22 10:51 -0700
    Re: Locale.getDefault bug in JDK 1.7 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-08-22 18:18 +0000
    Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-22 11:22 -0700
      Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-22 12:40 -0700
      Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-23 09:04 -0700
        Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-23 09:10 -0700
    Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-23 08:08 -0700
      Re: Locale.getDefault bug in JDK 1.7 Silvio <silvio@moc.com> - 2011-08-23 17:22 +0200
        Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-23 09:02 -0700
          Re: Locale.getDefault bug in JDK 1.7 Silvio <silvio@moc.com> - 2011-08-23 22:57 +0200
            Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-23 18:03 -0700
              Re: Locale.getDefault bug in JDK 1.7 Silvio <silvio@moc.com> - 2011-08-24 09:09 +0200
                Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-25 07:00 -0700
                Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-25 09:56 -0700
                Re: Locale.getDefault bug in JDK 1.7 supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> - 2011-08-25 15:50 -0400
                Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-25 12:55 -0700
                Re: Locale.getDefault bug in JDK 1.7 Silvio <silvio@moc.com> - 2011-08-27 00:48 +0200
        Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-25 06:54 -0700
  Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-23 09:43 -0700
    Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-02 08:24 -0700
      Re: Locale.getDefault bug in JDK 1.7 Jeff Higgins <jeff@invalid.invalid> - 2011-09-02 11:34 -0400

csiph-web