Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Date: Sun, 21 Aug 2011 13:49:39 -0700 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <4e514360$0$6555$9b4e6d93@newsspool4.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 21 Aug 2011 20:49:50 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="11359"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xs/unHkrrcDBONRAH5DyS1Ktw7HvbopY=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: <4e514360$0$6555$9b4e6d93@newsspool4.arcor-online.net> Cancel-Lock: sha1:3KcQpMqXa+gzctw+qNtxNd61l5Q= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7279 On 8/21/2011 10:41 AM, Gianni Galore wrote: > Am I crazy? Possibly. I'd suggest consulting a mental health professional if you're concerned about it. ;) (j/k) Also, most Java programmers know that methods can't be bare, they need to be enclosed in a class definitions. Two seconds with the Java tutorial would have reminded you. > package aaa.bbb; > public class Main { > public static void main( String[] args) { > System.out.println("hello"); > } }