Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Examples » Stuck on HelloWorld tutorial(Can't find main() method in tutorial.)
Stuck on HelloWorld tutorial [message #655008] Thu, 17 February 2011 18:28 Go to next message
No real name is currently offline No real name
Messages: 3
Registered: February 2011
Junior Member
I've just started working through the HelloWorld tutorial built into Eclipse (Help > Welcome). This is creating a Java application.

After creating a new Java class, I'm supposed to add a Print statement in the main() method. However, after clicking to close the previous step and do this one, the main frame is simply blank. I don't see any main() method!

What step was left out of this tutorial that is supposed to show the main() method?

Previously I had installed:
Mac OS X (Intel) version of the SDK
Eclipse for Javascript Web Developers

Thanks!
Steve
Re: Stuck on HelloWorld tutorial [message #707106 is a reply to message #655008] Mon, 01 August 2011 04:48 Go to previous messageGo to next message
Lubomir S. is currently offline Lubomir S.
Messages: 3
Registered: July 2011
Junior Member
Hi

When you create java class do not forget click on the checkbox "public static main ..."
If you want to have main class created by default. Otherwise you have to write main method yourself.
Re: Stuck on HelloWorld tutorial [message #897141 is a reply to message #707106] Sun, 22 July 2012 08:52 Go to previous message
jim liu is currently offline jim liu
Messages: 37
Registered: February 2011
Location: shanghai
Member
Eclipse Plugin's main is extension point,so please read more documents about eclipse extension points.

java eclipse Search
http://javafind.appspot.com/
Previous Topic:Eclipse Command Code Web Generator
Next Topic:hello, sample code
Goto Forum:
  


Current Time: Sat Jul 26 01:13:24 EDT 2014

Powered by FUDForum. Page generated in 0.21290 seconds