You can program the BrickPi in Java using this Github repository. Note: this does not apply to the BrickPi3.

This was developed and setup by one of our community members, ergouser.  Thanks ergouser!!