Skip to main content

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] Thu, 13 January 2011 04:45 Go to next message
JavaLearner  is currently offline JavaLearner Friend
Messages: 1
Registered: January 2011
Junior Member

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 05:10 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
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 May 24 19:37:29 GMT 2018

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

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

Back to the top