Revert "Fix java"

This reverts commit 45e7c06f7abb4902a40dba778651e81228c7a80d.