1st, make sure you have them in right.
Top one goes in from the top and points down.
Bottom one goes in from the bottom and points down.
The flanges should be flush with the inner knuckle.
Put the boots on, align the outer knuckle, and hold it up with some pressure from a floor jack. The tapered pins of the ball joints, fit into the tapered holed in the knuckle.
Install the nuts. These should spin on easily. If the bolt side spins, add more upward pressure to get the tapers to seat.
If you get a case where you absolutely can not get the tapers to seat, you likely have a wallowed out knuckle. On some XJs, there is a tapered insert you can replace and it comes with the ball joint. But IIRC, it is only for the lower.
Ron