Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quickly find the main() in java project using eclipse ?

Tags:

java

eclipse

In a case I have the src folder of project with a lot of classes in it , how could I detect which is the class with the main() that the project running start with ?

like image 487
URL87 Avatar asked Jun 05 '13 16:06

URL87


1 Answers

  • open the project you want to run class from;
  • in main window: Run -> Open Run Dialog...(Run Configurations);
  • in the left section open the project type your project belongs to (if it's main function it would be "Java Application" in your case);
  • under this category your should see all the "executable" class names;
like image 109
AllTooSir Avatar answered Oct 13 '22 00:10

AllTooSir