I've encountered this myself and seen it asked a lot on other sites as well.
When trying to play JK2 using the disc you used to install it you might see something like this:
The solution:
To play JK2 you need to insert the EaW/KotOR disc, and NOT use the BF/JK2/RC disc!
Really annoying, but that's the way it works, tried it myself...