I have a class called CacheDownloader for my client that downloads unzips updates for my main bank client. I had a problem with this because he could not unpack the new client and replace it during use, so I had to create a new jar (called ClientUpdater) that would unpack the new client to replace the old one, and then open a new one.
ClientUpdater opens a client backup without any problems. However, CacheDownloader cannot open ClientUpdater, it receives an error in memory.
CacheDownloader still downloads all the new files and unpacks the bulk of the files, all that ClientUpdater does is decompress a small ZIP file containing a rather small client.
This is how CacheDownloader loads ClientUpdater:
Runtime.getRuntime().exec("java -jar " + getCacheDir() + "/ClientUpdater.jar");
System.exit(0);
Here is the complete error message - http://gyazo.com/8105ffd4c35f5f6d4a68a770fedf8f92
I hope this is enough for the context and the information, if it is not long. Now my question is: how can I fix this? The error says that I can increase the reserved code cache, is there a negative side to this? And how to do it, anyway, Google didn’t really show how simply explained what it did.
I am new to Java, so be aware.
source
share