Make translated JAVA code compile