A phrase sometimes used to avoid cursing, sometimes by professors. A similar reference can be found in Matlab using the 'why' command.
When the problem didn't work out as expected, the professor exclaimed, "What the Jack?!"