Class loading question on backport-util-concurrent
661599Aug 4 2011 — edited Aug 4 2011Hi,
I have 2 different projects both of which are built on Spring 2.5 and Java 5.
Both projects compile and load fine when backport-util-concurrent.jar is included.
However, I read that backport-util-concurrent is no longer needed in Java 5 and so attempted to remove this from both.
Project A compiled and loaded fine without it. However, I got a NoClassDefFoundError when I removed it from project B.
I ran a static analyzer called JarAnalyzer against the classpath directory of both projects to determine jar dependencies.
It found that in project A, only spring-context.jar and spring-core.jar required it.
In project B, the analyzer determined that spring-context.jar and spring-core.jar required it, as well as 3 other company-specific jars.
My question therefore is as follows...what may be happening in project B in that it explicitly requires this jar instead of loading it from Java 5, similar to project A?
If one of the company-specific jars was compiled against Java 4 would this cause it?
Thanks