Im getting a error for the following function in class called ApplicationRunner on
the line that calls main in my Main class:
The method main(String) in the type Main is not applicable for the
arguments (String, String, String, String)
even though main is declared public static void main(String ... args)
Eclipse doesn't use the standard version of javac, since it is built on IBM's VisualAge, which allows for incremental compilation (and compile times are reduced). So it won't necessarily correspond to your installed JDK.
Make sure you've re-compiled the class you're calling.
Check your project compiler properties, and make sure you're not using an ancient version of Eclipse.
Try compiling using javac from the command line.
If it still doesn't work, distill the problem down to a short example demonstrating the behaviour and post here.
Joined: Jun 22, 2011
Thank you, eclipse had automatically imported a sun main class rather than my local main class