The Japanese government has condemned North Korea for launching two missiles toward the Sea of Japan.