converting java to gold