Run java code in game