Slap yourself real hard on the face every time you crack a knuckle. And then fine yourself 20 bucks. After you quit the habit, use the fines to pay for plastic surgery on your face.
An alternative remedy is to drop a bowling ball on your groin every time you crack your knuckles, but for some reason this remedy is rarely used.