I have a class named CacheDownloader for my client that downloads an unzips updates for my main jar, the client. I had a problem with that because it couldn't unzip the new client and replace it while in use, so I had to make a new jar (named ClientUpdater) that would unzip the new client to replace the old, then open the new one.
ClientUpdater opens the client back up no problem. However the CacheDownloader cannot open ClientUpdater, it gets an out of memory error.
CacheDownloader still downloads all the new files and unzips the brunt of the files, all ClientUpdater does is unzip a tiny zip file that contains a fairly small client.
Here is how CacheDownloader loads ClientUpdater:
Runtime.getRuntime().exec("java -jar " + getCacheDir() + "/ClientUpdater.jar");
System.exit(0);
Here is the full error message - http://gyazo.com/8105ffd4c35f5f6d4a68a770fedf8f92
Hopefully that is enough context and information without it being to lengthy. My question now is, how can I go about fixing this? The error says I can increase the reserved code cache, is there a negative side to this? And how do I do that anyway, Google didn't really show how just explained what it did.
I'm pretty new to Java so something to keep in mind.