It happens if you run out of texture memory. The game itself isn't running out of memory but java will still throw the error. Confused yet?
Please post how much ram you have installed, what Windows version you are running, and if your OS is 32-bit or 64-bit.
Please note that if you didn't...