According to Ken Krawchuk:
I just checked my Rules of Court, and the qualifications for District Justice are pretty loose. In general, if you're eligible to vote, you can run. There are a lot of petty restrictions on what ethical actions you can or can't perform once you're on the ballot (such as not being able to comment on how you'd rule on a given matter), but nothing that would affect your ability to run.