JavaBuilder: Appropriate error message when there are no sources

This fixes: #180