Java Virtual Machine (JVM) - preloading jars
843829Jun 26 2008 — edited Jun 26 2008Hi,
I know, that topic has been asked before (in 2004), but has not been answered completely.
MSW locks JARs which are in use, so if anybody uses a java application it is impossible to rename, delete or update a JAR of this application. A possible workaround would be to create a JVM using JNI, include all the JARs into that JVM and run the application within that "sandbox" so, that the application does not need to touch the JARs on disk after it has been launched. A good example would be a webserver preloading necessary libraries for the web application at startup.
This cannot be done by simply using classpath, because that gives only a hint, where the needed classes are found. The JARs must be included into the starting JVM. But how?
I did not find anything about this theme at all.
Any hints or suggestions are welcome.
Regards, Frank.