Skip to content

Commit 3e33ce0

Browse files
committed
Merge pull request #2 from learn-co-curriculum/wip-master
Adding instructions for Eclipse
2 parents 5c4df7b + c8d8be4 commit 3e33ce0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,16 @@
1919
4. `Double.parseDouble()` converts a `String` to a `Double`.
2020

2121
You can run `ant` or `learn-test` to test your results. Good luck!
22+
23+
### Working in Eclipse
24+
25+
If you would like to work on these labs in Eclipse, we recommend the following workflow:
26+
27+
1. Use a Git client to clone your repository to your file system. We don't recommend importing directly from Git into Eclipse.
28+
2. In Eclipse, select File -> New -> Project...
29+
3. In the "Select a Wizard" dialog, select Java -> "Java Project from Exisiting Ant Build File". Click "Next".
30+
4. In the "Create a Project" dialog, give the new project a name, then click "Browse" and navigate to the `build.xml` file in the repository you just cloned. IMPORTANT: Select "Link to the build file in the file system" to avoid copying the files from the repository into the Eclipse work space. Then click "Finish".
31+
5. In Eclipse, open the project you just created. You should be able to run `HelloWorld.java` and `HelloWorldTest.java`. You should also be able to select the project and run it as a JUnit test.
32+
6. Once your program is working, go back to the cloned copy of the repository and run `learn-test`.
33+
7. Add, commit, and push any files you changed back to your repository on GitHub.
34+
8. When you go back to the Learn web interface, you should be able to "Run Local Tests" and "Submit Pull Request".

0 commit comments

Comments
 (0)