Actually the peccary is not related to the pig at all.
Nor is javalina
Oops.
They aren't pigs but they are closely related.
Peccaries are members of the Artiodactyls (even-toed ungulates) as are swine Suidae and hippopotami Hippopotamidae.
*From Wikipedia.