Media reports say a man threw a cellphone into the face of the judge Thibaud Soubeyran during proceedings in the capital, Noumea.
Police were called to arrest the perpetrator.
Reports say firefighters as well as the prosecutor provided assistance to the judge who was injured.