File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Running Eclipse Project" Watch "Running Eclipse Project" New topic
Author

Running Eclipse Project

Rahul Raj cochin
Greenhorn

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
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Running Eclipse Project
 
Similar Threads
Importing Maven project in Eclipse?
How to run JavaScript project created in eclipse
How to get back R.java after cleaning the project in eclipse?
Error when running resin on Eclipse
Maven change project setup m2eclipse