To fix the annoying Java virtual machine error, you may try to start in 64-bit mode or use the steps described in this detailed guide.