Friday, October 19, 2012

Making your existing project to breath in Eclipse IDE


Always enter the Parent directory of the project as work space while opening the Eclipse.

To open the project:
Goto File à import… à Existing Project into Workspace à “c:\Projectpath\” à Finish

Open the Java perspective

Window  à Open perspective  àJAVA

Left side shows the Workspace

                To compile:
                                Open Ant (Window à Show View à Ant)
                                Add build.xml(ANT's .xml file for the build)to the list of build files
                                Run target “default” (or any target that seems to build Project)


To compile and debug in eclipse:
Make sure that Project à “Build Automatically” is checked, (project will compile when it is opened)
                Debug Configuration à Debug… à à New à
Type into project: “tips-pm”
Type into “Main class” common.Main
Click on Arguments Tab
type in “DEBUG RUNDEV" (or any required default argument in the your project) username  password  where “username …” are optional
                                                Click on Apply à Run
                                Next time you can just press F11