How to use two different versions of the same jar within one project

Hi everybody!

I have a big problem while integrating different web service clients within one bigger java project. Both implemetations need some jar files to work but demand different version. So, i would like to know if there is any way to tell which implementation should use which version! Anyhow i add those jars to the classpath makes working only one or the other webservice working but never both! Any ideas somebody?

Best regrads,

Stefan G鰐z

[475 byte] By [stegotsa] at [2007-11-26 17:50:00]
# 1
Name then differently?
ChuckBinga at 2007-7-9 5:02:30 > top of Java-index,Desktop,Deploying...
# 2

Of course do have the jar files different names but the classes inside of them are the same ... means that the standard system classloader can distinguish them. When you add a jar to a classpath the name actually dosent matter.... any other ideas, please?

PD.: i tryed to add a manifest file to the one jar which makes use of one of the dublicated jars to specify which jar to take direcly but it makes no difference since once classes loaded they cant be distinguish ....see:

http://java.sun.com/docs/books/tutorial/ext/basics/load.html

stegotsa at 2007-7-9 5:02:30 > top of Java-index,Desktop,Deploying...