Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Newbie stuck at HelloWorld
Newbie stuck at HelloWorld [message #145816] Thu, 26 February 2004 15:46 Go to next message
Eclipse UserFriend
Originally posted by: toraware.mail.com

In starting out with the simple tutorial to learn Eclipse,
I followed directions to write a HelloWorld class in a new java project.

Eclipse does things and comes up with the following class - for which
I'm supposed to type in the plintln command.
Thus ->


public class HelloWorld {
System.out.println("Hello World");
}

But right off the bat I get an error:
Syntax error on token "(", "Identifier"
expected HelloWorld.java newProject line 16


Did I not install correctly? I don't know because Eclipse does not have
an entry in my Start->Prtograms menu - nor is there a Control
Panel->Add/Remove Programs entry for Eclipse. I'm on a Win2000 box.
Re: Newbie stuck at HelloWorld [message #145850 is a reply to message #145816] Thu, 26 February 2004 16:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manahan.NOSPAM.ca.ibm.com

Don't the directions say to type in something like this?

public class HelloWorld {
public static void main(String [] args) {
System.out.println("Hello World");
}
}


Peter

ruffy wrote:
> In starting out with the simple tutorial to learn Eclipse,
> I followed directions to write a HelloWorld class in a new java project.
>
> Eclipse does things and comes up with the following class - for which
> I'm supposed to type in the plintln command.
> Thus ->
>
>
> public class HelloWorld {
> System.out.println("Hello World");
> }
>
> But right off the bat I get an error:
> Syntax error on token "(", "Identifier"
> expected HelloWorld.java newProject line 16
>
>
> Did I not install correctly? I don't know because Eclipse does not have
> an entry in my Start->Prtograms menu - nor is there a Control
> Panel->Add/Remove Programs entry for Eclipse. I'm on a Win2000 box.
>
>
Re: Newbie stuck at HelloWorld [message #145872 is a reply to message #145816] Thu, 26 February 2004 17:35 Go to previous message
Eclipse UserFriend
How about reading some basic Java books.
Thinking in Java comes to mind by Bruce Eckle.

This has nothing to do with Ec.lipse. Rather your poor knowledge of
java. You've a compiler error due to invalid syntax.

Thisis not the correct forum for this question. No Eclipse forum is.
Look on Usent comp.lang.java... for the correct forum.


On Thu, 26 Feb 2004 20:46:36 +0000 (UTC), toraware@mail.com (ruffy)
wrote:

>In starting out with the simple tutorial to learn Eclipse,
>I followed directions to write a HelloWorld class in a new java project.
>
>Eclipse does things and comes up with the following class - for which
>I'm supposed to type in the plintln command.
>Thus ->
>
>
>public class HelloWorld {
> System.out.println("Hello World");
>}
>
>But right off the bat I get an error:
>Syntax error on token "(", "Identifier"
>expected HelloWorld.java newProject line 16
>
>
>Did I not install correctly? I don't know because Eclipse does not have
>an entry in my Start->Prtograms menu - nor is there a Control
>Panel->Add/Remove Programs entry for Eclipse. I'm on a Win2000 box.
>
Previous Topic:CVS does not show modules and problems committing back
Next Topic:packages vs directory structor
Goto Forum:
  


Current Time: Wed Apr 16 13:33:04 EDT 2025

Powered by FUDForum. Page generated in 0.04043 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top