• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help to includes jar files in classpath of a jar file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"/>
</fileset>
<manifest>
<attribute name="Main-Class" ="x/y/z/tdd" />
<attribute name="Class-Path" value=" /lib/mail.jar /lib.tidy"/>
</manifest>
</jar>
</target>
<target name="run jar" depends="jar">
<java fork="yes" jar="${dist}/tdd.jar"/>
</target>
----------------------------------------------------------------------
thanks in advance
 
reply
    Bookmark Topic Watch Topic
  • New Topic