Hey this may be a somewhat simple question, but I’m new to Eclipse and was trying to get my friend’s project to work on my own machine.
He sent me his code, which I unzipped and extracted into my home directory. The structure of his project is such that:
-
The src and bin directories are in a directory called Circle, which itself is listed under my home directory.
-
Eclipse is installed under my home directory as well, but in a different folder called eclipse.
-
So, my friend’s src directory has two subdirectories, circle and racket. racket is another guy’s project, but I imagine that both these directories will need to be used early on in my project
-
Under the circle subdirectory are even more subdirectories, called characters, experiments, and core. Each of them only contain java files related to the project, but circle.java (the name of the project) is listed under the “core” subdirectory. However, “experiment.java” is listed under the “experiments” subdirectory, which I am not sure why it does not contain the main() method of the project…. (you want to run the experiment, right?) Instead, the main() method of the project is contained inside circle.java, which I am not sure why….
Anyway, I was hoping someone could help me set this small project up (properly) using Eclipse. I’ve never used Eclipse before, so some intuitive steps may need to be explained. Thank you so much, in advance for helping 🙂
****EDIT: Also, where should I put the workspace? Should it be defined in the home directory, or inside my friend’s top Circle directory?
First place the .zip file anywhere; maybe a safe folder so it can stay there as a back-up.
Then these steps:
This should be sufficient to import the project with its structure to your Eclipse environment.
Don’t forget that this is not the best practice to work on the same code. Try to set-up SVN or other versioning systems.