How to preload classes in JVM?

Sometimes it’s really required to preload classes especially in the case of third party libraries. If a custom implementation required for third party library classes, often tend to download all the source code of third party library and apply our changes , compile and add it to the classpath. Is this really required? are there any option?

With JVM this is not really needed , simple adding “-Xbootclasspath/p:<Customizedclass lib jar>” would do our job. Basically this option enables us to pre load the classes with our own custom code.


For additional please read an excellent article in Dzone.





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s