A large number of detected and undetected Jupiter-sized planets could not mimic the gravitational effects produced by dark matter for two reasons. First, planets, although faint, are made of luminous matter and therefore are ultimately detectable. Second, their estimated numbers and locations, primarily around the galactic plane, do not support the large-scale gravitational effects similar to those of dark matter.
Astronomy magazine subscribers can read the full answer for free. Just make sure you're registered with the website.