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.

Source: https://dzone.com/articles/java-holiday-calendar-2016-day-16-hacking-the-exis?edition=256682&utm_source=Daily%20Digest&utm_medium=email&utm_campaign=dd%202016-12-17

 

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s