does the judge have jurisdiction? No, because they are only granted jurisdiction in the place where they are presiding.
Family code states, "Art. 7. Marriage may be solemnized by:
(1) Any incumbent member of the judiciary within the court's jurisdiction..."
The judge was not authorized to solemnize the marriage outside his jurisdiction hence:
Art. 35. The following marriages shall be void from the beginning:
(2) Those solemnized by any person not legally authorized to perform marriages unless such marriages were contracted with either or both parties believing in good faith that the solemnizing officer had the legal authority to do so;"
If you look at the provision, there is a defense in favor of the Validity of the marriage...Your friend may have to tackle this during trial...Your friend may have a problem with this, knowing that the marriage was solemnized outside the judge's jurisdiction and she didn't do anything about it for 19 years is not good for her case.