When I would like to make use of Ivy as a classloader for an application
FooMain, which also depends on commons-lang,
it is nessesary that the class org.bar.foo.FooMain, is loaded through the
Ivy process? Or simpler said, that the class needs to ne in a 'jar' which is
loaded through the Ivy process?

java  org.apache.ivy.Main  -dependency apache commons-lang 2.1  -main
org.bar.foo.FooMain

or

java  org.apache.ivy.Main  -main org.bar.foo.FooMain
with a ivy.xml (which contains the reference to apache commons-lang 2.1)

This class 'org.bar.foo.FooMain', must be on the classpath loaded through
Ivy!

And not on the normal java classapth like:
java  -cp foo.jar  org.apache.ivy.Main  -dependency apache commons-lang 2.1
-main org.bar.foo.FooMain


Regards, Tjeerd

Reply via email to