A lawsuit that sought to keep Robert F. Kennedy Jr.'s name from appearing as an independent candidate on the New Jersey ballot in his run for president was dismissed Monday by the Mercer County Superior Court as the incorrect venue for such a challenge.