dagblog.
← Archive

Source code online


I often need to take a quick look at the source files of open-source Java libraries I use on my projects or that are relevant to my work in some way. It’s handy to attach sources in the IDE, but I haven’t linked sources for every library. So I’ve come to like two websites that collect source code from all sorts of open-source Java libraries and make it easy to search, view and browse.

The first is JDocs, whose AJAX interface comes fairly close to what an IDE offers. The second is Docjar, which has a simpler and more straightforward interface. Both let you integrate search into your IDE, and Docjar lets you integrate it into a browser too. For now, I prefer searching on the sites themselves.

If you need a quick look at the source of an open-source project, I can recommend both sites. JDocs, at least, is worth a try.

Medium version

Related articles

Related CZ Podcast episodes