Thursday, April 14, 2005

ClassLoaders and Jar Dependencies

Use of the Class-Path entry within a JAR file's manifest can help you manage external dependencies--to a point. Once you start using multiple JARs that need incompatible versions of external JARs, problems quickly ensue. As Don Schwarz shows, you can get out of this problem by using your own class loader to manage the dependencies.

rating comment: Great article about java class loading and jar dependencies. I've read a couple of articles about class loading in general, writing your own class loader and class loading in J2EE. This is one of the best articles, cause it provides exactly the information I need, illustrated using a practical approach!

No comments: