• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running Eclipse Project

 
Rahul Raj cochin
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to configure my eclipse project such that, when I run the project, it should automatically run the specified java file(contains main method)...
How to do it?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a run configuration for the project. (right-click the project, Runs As | Run Configurations). In the Run Configurations dialog create a new Java Application and specify the Main Class on the ?Main" tab in the dialog.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic