Removed java dependencies and replaced with scala.
Revert "Removed java dependencies and replaced with scala."

This reverts commit beaeb9f05a2f27cc013c6ae5bf9c7dc20018e327.