(a) A claim that a district court or criminal district court does not have jurisdiction over a person because jurisdiction is exclusively in the juvenile court and that the juvenile court could not waive jurisdiction under § 8.07(a), Penal Code, or did not waive jurisdiction under § 8.07(b), Penal Code, must be made by written motion in bar of prosecution filed with the court in which criminal charges against the person are filed.
(b) The motion must be filed and presented to the presiding judge of the court:

Terms Used In Texas Code of Criminal Procedure 4.18

  • Appeal: A request made after a trial, asking another court (usually the court of appeals) to decide whether the trial was conducted properly. To make such a request is "to appeal" or "to take an appeal." One who appeals is called the appellant.
  • Appellate: About appeals; an appellate court has the power to review the judgement of another lower court or tribunal.
  • Conviction: A judgement of guilt against a criminal defendant.
  • Defendant: In a civil suit, the person complained against; in a criminal case, the person accused of the crime.
  • Evidence: Information presented in testimony or in documents that is used to persuade the fact finder (judge or jury) to decide the case for one side or the other.
  • Jurisdiction: (1) The legal authority of a court to hear and decide a case. Concurrent jurisdiction exists when two courts have simultaneous responsibility for the same case. (2) The geographic area over which the court has authority to decide cases.
  • Person: includes corporation, organization, government or governmental subdivision or agency, business trust, estate, trust, partnership, association, and any other legal entity. See Texas Government Code 311.005
  • Plea: In a criminal case, the defendant's statement pleading "guilty" or "not guilty" in answer to the charges, a declaration made in open court.
  • Rule: includes regulation. See Texas Government Code 311.005
  • sworn: includes affirm or affirmed. See Texas Government Code 312.011
  • Trial: A hearing that takes place when the defendant pleads "not guilty" and witnesses are required to come to court to give evidence.
  • Written: includes any representation of words, letters, symbols, or figures. See Texas Government Code 311.005

(1) if the defendant enters a plea of guilty or no contest, before the plea;
(2) if the defendant’s guilt or punishment is tried or determined by a jury, before selection of the jury begins; or
(3) if the defendant’s guilt is tried by the court, before the first witness is sworn.
(c) Unless the motion is not contested, the presiding judge shall promptly conduct a hearing without a jury and rule on the motion. The party making the motion has the burden of establishing by a preponderance of the evidence those facts necessary for the motion to prevail.
(d) A person may not contest the jurisdiction of the court on the ground that the juvenile court has exclusive jurisdiction if:
(1) the person does not file a motion within the time requirements of this article; or
(2) the presiding judge finds under Subsection (c) that a motion made under this article does not prevail.
(e) An appellate court may review a trial court’s determination under this article, if otherwise authorized by law, only after conviction in the trial court.
(f) A court that finds that it lacks jurisdiction over a case because exclusive jurisdiction is in the juvenile court shall transfer the case to the juvenile court as provided by § 51.08, Family Code.
(g) This article does not apply to a claim of a defect or error in a discretionary transfer proceeding in juvenile court. A defendant may appeal a defect or error only as provided by Chapter 56, Family Code.