Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » selection does not contain main type - Java Spring( )
selection does not contain main type - Java Spring [message #648473] Wed, 12 January 2011 23:45 Go to next message
JavaLearner  is currently offline JavaLearner
Messages: 1
Registered: January 2011
Junior Member
Hi,

I am new to Eclipse and have installed 3.4.2 version.
When I try to run a simple Spring program, I get the error " selection does not contain main type".

I right click on the Java file that has the main method and then Run As - Java App.
My program does contain the main method.

Can anyone please help me to resolve this issue?

I would really appreciate it.

Thanks in advance.
Re: selection does not contain main type - Java Spring [message #648986 is a reply to message #648473] Mon, 17 January 2011 00:10 Go to previous message
Satyam Kandula is currently offline Satyam Kandula
Messages: 444
Registered: July 2009
Senior Member
main should be exactly public static void main(String[] args)
Previous Topic:how to use jdt for batch rename
Next Topic:Cannot not start Java program in eclipse
Goto Forum:
  


Current Time: Thu Jul 31 21:48:32 EDT 2014

Powered by FUDForum. Page generated in 0.02429 seconds