Steps to create a project in eclipse from existing java files.
- Create an Empty Workspace in Eclipse (lets call it Test)
- Now Using your file browser go to the folder where the new .classpath and .projects are. This will be your "Test" folder under the workspace folder.
- From here drill down to your src folder. In this directory drag and drop the top level of the source code you have, for example mine is "com" folder and under this are all my packages and java files.
- Go up to the same level as the src folder and go down into your lib folder.
- In here copy all required JAR files that your java files have.
- Now go back into Eclipse and on the left under your Package Explorer right click the src folder and pick refresh. Do the same for your lib folder.
- Now right click on your project (in our example Test) . Select Properties. Pick "Java Build Path" on the left. Then click "Add External JARS.." on the right. Add all the .jar files you did in step 5.
- Thats it! You now need to do run and define what it is you're running but that is self-explanatory.
No comments:
Post a Comment