Hi,
I have a project that requires several custom jar files that I want to embed in a single runnable jar file. Generally speaking, that doesn't work and someone on another forum suggested I try jarjar.
I use Eclipse and so I put the jarjar.jar in the project's lib folder but my problem is that ant can't find it. From the example in the Getting Started section in the Wiki, I added The following in the compile section of my build.xml:
<taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask"
classpath="lib/jarjar.jar"/>
And I get the following:
BUILD FAILED
/Users/rtanner/Java/Workspace/LibraryAlmaInterface/build.xml:52: taskdef class com.tonicsystems.jarjar.JarJarTask cannot be found
using the classloader AntClassLoader[]
I also tried moving the jarjar.jar into a generic jar file repository that I regularly use and gave it the full path from "/":
<taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask"
classpath="/Users/rtanner/Java/WorkSpace/Jarfiles/lib/jarjar.jar"/>
And I get the same error as above.
I'm running Ant from inside Eclipse. Where do I put the jar file so that the AntClassLoader can find it?
Thanks,
Rob Tanner
Linfield College