This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

help to includes jar files in classpath of a jar file

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I'm a beginner here,
I'm trying to create a executable jar file(tdd.jar) that has a java class which includes certain other jar files like, mail.jar,tidy.jar,etc.
I have included the jar files in a lib dir in the tdd.jar
when i create and execute my jar file, its not able to locate the jar files in the classpath,
could someone explain to include (jar) files from with a jar
<target name="jar" depends="compile">
<jar jarfile="${dist}/tdd.jar" basedir="build">
<fileset dir="src">
<include name="**/lib/*.jar"/>
<attribute name="Main-Class" ="x/y/z/tdd" />
<attribute name="Class-Path" value=" /lib/mail.jar /lib.tidy"/>
<target name="run jar" depends="jar">
<java fork="yes" jar="${dist}/tdd.jar"/>
thanks in advance
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic