If a federal judge puts him in jail, he can just pardon himself.
If a state judge puts him in jail, I'd imagine that SCOTUS could act. I'm not an expert on state appeals regarding state laws to the Supreme Court, and I haven't thought it through fully, but I would imagine that the State would be challenging the sovereignty of the Federal goverment and the validity of the national election, so I would think there would be an issue for SCOTUS to resolve.
This message has been edited 3 time(s).