I'm working on an Applet which is not in a JAR. With the security issues/requirements with the latest versions of JRE, we now need to JAR the applet (and sign it). And when we did, we realized that our JAR file reached 30mb in file size! (.java files already excluded). (We do have lots of transactions with this applet)
Now we're exploring if it is possible to make this applet use separate signed jar files, which would be downloaded only as the user access the corresponding transactions. We've tried it but we've only managed to download the signed jar file which contained the applet but when we access the transactions, the JAR file wasn't downloaded. =/
I've read oracle articles about JRE / JAR signing but they didn't mention anything about applet using multiple JARs.
Need some advice / guidance on what could we do next to make this work.
I'm trying not put the other JAR files in the archive attribute to make the initial access of the applet faster. I want the other JAR files to be downloaded only as the user access the corresponding transactions.
"JAR A" will only be downloaded as "user A" accessed "Transaction A". (Assuming "JAR A" contains the classes corresponding to "Transaction A".)
I was able to make this approach work in lower versions of JRE (1.7 update 21 or lower).
Still a bit confused on what could be the next step for me. =/
To be, rather than to seem.
posted 5 years ago
I found this oracle document which suggests that indexing the jars will ensure only the required jars are downloaded.