Thursday, October 11, 2007

Setting up Eclipse workspace

1) SVN checkout to the folder..
2) step 1 will create all the reqd folders for your project
3) EX: if its an Enterprise proj, will create app, app-ejb, app-web
4) In your eclipse switch to the new workspace point to the directory just created
5) Create a new project in Eclipse (If its an enterprise proj, select enterprise project or just select java project)
6) Enterprise project will ask you to create 3 folders, appname, appejb and appweb
7) Name these projects same as the folders checked out from svn, (doing so will import all ur files and folder structures from the directory)

Setting Class path:

Rt click on the webproject and properties, in the build path and libraries, copy all the jar's from your webroot/web-inf/lib to here.

Also copy JRE jars from the apt location, usually from the server (so that ur server and ur eclipse use the same version of java)

In source tab make sure you have the project--> Src directory there. Or you will see complation errors (in eclipse) for all import stmts in ur java files


Some screen shots:




Create a folder in ur local machine, where you want to set up the workspace

No comments: