I am placeing a.jar and b.jar under ./packages/mypackage/code/jars/ folder
b.jar contains newer version of classes in a.jar.
When I run my java service I wish to load b.jar first in classpath so that newer version of classes are picked always.
I am bound by following restriction
- I can’t keep one version of class in jars or class folder due to our roll out
- I cannot set classpath in server.bat as the jars loaded in server.bat
cannot be reloaded without recycling the server but defining the load
sequence at package level can reload the latest jars if package is reloaded
Would appreciate your help.