When a court has no jurisdiction over a case under public prosecution, it must render a decision of lack of jurisdiction by a judgment; provided however, that it may not render such decision on a case which has been committed to a district court for trial pursuant to the provisions of Article 266, item (ii).
被告事件が裁判所の管轄に属しないときは、判決で管轄違の言渡をしなければならない。但し、第二百六十六条第二号の規定により地方裁判所の審判に付された事件については、管轄違の言渡をすることはできない。
Read this with the articles around it