To take an oath, judicially administered.
To swear also signifies to use such profane language as is forbidden by law. This is generally punished by statutory provisions in the several states.
--b--