Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Virtual Machine (JVM) - preloading jars

843829Jun 26 2008 — edited Jun 26 2008
Hi,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2008
Added on Jun 26 2008
1 comment
363 views