FIxed Java Error

Fixed java build/test errors!