Newbie issue with jarjar 1.4

133 views
Skip to first unread message

Rob Tanner

unread,
Jun 21, 2013, 1:55:08 PM6/21/13
to jar...@googlegroups.com
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

Rob Tanner

unread,
Jun 21, 2013, 5:31:15 PM6/21/13
to jar...@googlegroups.com
Turns out the ability to build a runnable jar containing other jars is built right into Eclipse.  Problem solved.
Reply all
Reply to author
Forward
0 new messages