Fork in java from scala version :/