War! Age of Imperialism. error.

I just bought a game and I get and error when I try to install it.
java.lang.StringIndexOutOfBoundsException: String index out of range: -66
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at ZeroGlh.a(Unknown Source)
at com.zerog.ia.installer.util.magicfolders.JavaHomeMF.a(Unknown Source)
at com.zerog.ia.installer.util.magicfolders.JavaHomeMF.b(Unknown Source)
at com.zerog.ia.installer.util.magicfolders.MagicFolder.initializeAllMagicFolderPaths(Unknown Source)
at com.zerog.ia.installer.Main.d(Unknown Source)
at com.zerog.ia.installer.Main.c(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)