Durin Rogers, running to move up from part-time City Court judge to full-time, won the Republican primary vote Tuesday, beating attorney Ben Bonarigo, 644 votes to 396 votes.
Rogers also won on the primary lines for Conservative and Independence by 43-16 and 48-34, respectively.
Though Bonarigo was unable to win the Republican line for the general election in November, he will still appear on the ballot on the Democratic line.
Bonarigo faced no challenge for the Democratic line.