You can order the game online from several places. It's quite cheap nowadays!
Anyway, the point is not that using cd cracks make you a bad person per se (you might have legit reasons to use one), but that if you're pirating the game, you have nobody to blame but yourself if something goes wrong, ditto if you're using an unofficial modification of the executable, like a home-made "crack."
If the error goes away once you remove the crack, then there's your answer.
Considering what our site is all about of course, we don't encourage piracy of LucasArts or Star Wars products. Questions about this error message get asked from time to time and most people don't understand the issues involved.