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


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

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

From ggal@osgitest.org (Gianni Galore)
Newsgroups comp.lang.java.programmer
Subject Why does Eclipse find error in simple "public static void main( String[] args) { } instruction?
Followup-To comp.lang.java.programmer
Date 2011-08-21 17:41 +0000
Message-ID <4e514360$0$6555$9b4e6d93@newsspool4.arcor-online.net> (permalink)
Organization Arcor

Followups directed to: comp.lang.java.programmer

Show all headers | View raw


Am I crazy? I setup just the most simple java program in a new v3.6.2 Eclipse java project:


package aaa.bbb;

public static void main( String[] args) {
  System.out.println("hello");
 }

 
And Eclipse thinks the line

public static void main( String[] args) {

contains already an error (indicating a white x on red dot). When hovering above the red ot the Eclipse tells me:

- Syntax error, insert ")" to complete SimpleMemberAbnnotation
- Syntax error on toker "]", invalid(
- ...

Hmm, whats wrong? Eclipse does not like the  brackets after "String[]"

I guess its a wrong Eclipse setting for the Java project but which?

I use J2SE v1.6upd26 under Win7

Gianni

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


Thread

Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? ggal@osgitest.org (Gianni Galore) - 2011-08-21 17:41 +0000
  Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Patricia Shanahan <pats@acm.org> - 2011-08-21 11:05 -0700
  Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? markspace <-@.> - 2011-08-21 13:49 -0700

csiph-web