File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Running Eclipse Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Running Eclipse Project" Watch "Running Eclipse Project" New topic

Running Eclipse Project

Rahul Raj cochin

Joined: Mar 29, 2012
Posts: 9
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

Joined: May 14, 2008
Posts: 5852

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.

JBoss In Action
I agree. Here's the link:
subject: Running Eclipse Project
It's not a secret anymore!