Coursera is offering great algorithmic courses Algorithms, Part I and Part II by Robert Sedgewick. The only problem with them is Dr. Java IDE they recommend. It is free, usable but completely impractical when it comes to debugging. I’ve configured Eclipse IDE and my productivity increased significantly, especially when it comes to debugging.
Here is how to configure Eclipse on Windows machine for Algorithms, Part I/part II:
- Uninstall any instances of Java from your machine
- Follow step 0 from http://algs4.cs.princeton.edu/windows/ to install algs4.exe
- only follow step 0, skip the rest as we will use Eclipse instead of Dr. Java
- Download stdlib.jar and algs4.jar to permanent folder
- Download Eclipse IDE for Java Developers
- At the time of this blog post I had Eclipse Luna SR1 4.4.1 on my machine
- Follow instructions in eclipse.pdf to configure Eclipse.
- The instructions are long and little tedious but well worth it
- Here’s how you create a User Library in Eclipse: go to Window > Preferences > Java > Build Path > User Libraries, create New library and add algs4.jar and stdlib.jar from step 3 (I called it Coursera):
- Whenever you create a new Java project you need to add newly created user library : right click on project, Build Path > Add Libraries
- Here’s what your Java project in Eclipse will look like after adding this library:
Eclipse worked well for me and as I mentioned previously increased my productivity which made studying fun again.
Good luck and let me know if you have questions!