The court must make a judgment to render a dismissal of prosecution when:
左の場合には、判決で公訴を棄却しなければならない。
it has no national jurisdiction over the defendant;
被告人に対して裁判権を有しないとき。
the prosecution has been instituted in violation of Article 340;
第三百四十条の規定に違反して公訴が提起されたとき。
there is a further institution of prosecution for the same case in the same court;
公訴の提起があつた事件について、更に同一裁判所に公訴が提起されたとき。
the procedure of the institution of prosecution is ineffective because of violation of the provisions.
公訴提起の手続がその規定に違反したため無効であるとき。
Read this with the articles around it