Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to setup Eclipse for Algorithms by Sedgewick

📅 2015-Feb-19 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ checkstyle, eclipse, findbugs ⬩ 📚 Archive

Prof. Sedgewick has written a popular Algorithms book and developed Algorithms I and II courses on Coursera. Both of these use Java and provide many source code files and assignments to the students. These have been developed for the Dr. Java IDE or to work from the commandline. If you prefer to work with Eclipse for this book or course, just follow these steps:

$ sudo apt install openjdk-7-jdk
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows
cannot initialize module TreeWalker - Unable to instantiate JUnitTestCase

I removed the lines in checkstyle.xml that used these modules and it worked after that. My version of this configuration file can be downloaded here.

Tried with: CheckStyle 6.2, FindBugs 3.0.0, Eclipse 4.4.1 (Luna) and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧