Agitar had a free service that allowed you to do this (you had to be prepared to let it send your code to their servers).
If you were using scala, there is "scala check" - but I am not sure how well it works with java source (even though its all byte code).