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 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
    1. Follow instructions in eclipse.pdf to configure Eclipse. <li style="text-align: left;"> The instructions are long and little tedious but well worth it </li> <li style="text-align: left;"> 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): 0UserLibraries </li>
      • Whenever you create a new Java project you need to add newly created user library : right click on project, Build Path > Add Libraries 1AddLibrary 2AddLibrary
      • Here’s what your Java project in Eclipse will look like after adding this library:3Project

    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!