VisualBuilder
  Home > Java > Tutorials > Library Dependencies - Ant Tutorial
Tell a friend
Link to us
Total Members
      Members: 84709
     
Sitemap Forum Chat
Home
Ant Tutorial Home
1 . Introduction
2 . Library Dependencies
3 . Necessary Elements Of the Build File-1
4 . Neccessary Elements Of the Build File-2
5 . Writing Your First Buildfile
6 . Integration Of Ant With IDE Eclipse
7 . Command-line Arguments
8 . ANT Command Options Summary
9 . Properties in ANT
10 . Example to print the existing properties using ANT.
11 . Adding lib files in Classpath from the Ant Script
12 . Creating and deleting the directories from Ant Scripts.
13 . Working with Files.
14 . Example to Create the Jar files
15 . Creating the War files using the ANT Scripts
16 . Ear Command in Ant
17 . Generics
18 . Annotation Processing Tool ( APT )
19 . More Enhancements in Tiger.
20 . Java Compiler (javac) and Debugger
21 . Java Web Start in J2SE 5.0
22 . General Deployment Enhancements in J2SE 5.0
 
 
Java Home
Java Members (27650)
Java Member Articles ( 40 )
Java Discussion (275)
Java Q & A ( 174 )
- Java Ask Question
- Java Questions
- Java Unanswered Questions
Java Resources
Java Source Code (1096)
Java Articles (551)
Java Blogs (118)
Java Jobs (797)
Java Components (85)
Java Books (169)
Java Websites (127)
Java News (103)
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.Net Security,Internationalisation And Deployment
ASP.NET Tutorial
C# Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Hibernate Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (451 )
Source Code (3275 )
Articles (359 )
Books (372 )
Components (1596 )
News (892 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise

Java ant Tutorial
 Library Dependencies
  << Prev: Introduction Next: Necessary Elements Of the Build File-1 >>

The following libraries are needed in Ant's classpath if you are using the indicated feature. Note that only one of the regexp libraries is needed for use with the mappers (and Java 1.4 and higher includes a regexp implementation which Ant will find automatically). You will also need to install the particular Ant optional jar containing the task definitions to make these tasks available.




























































































































































Jar Name



Needed For



Available At



An XSL transformer like Xalan



style task



XALAN : http://xml.apache.org/xalan-j/index.html




jakarta-regexp-1.3.jar



regexp type with mappers



http://jakarta.apache.org/regexp/



jakarta-oro-2.0.8.jar



regexp type with mappers and the perforce tasks
To use the FTP task, you need jakarta-oro 2.0.8 or later,



http://jakarta.apache.org/oro/



junit.jar



<junit> task. May be in classpath passed to task rather than Ant's classpath.



http://www.junit.org/



xalan.jar



junitreport task



http://xml.apache.org/xalan-j/



stylebook.jar



stylebook task



CVS repository of http://xml.apache.org/cvs.html



antlr.jar



antlr task



http://www.antlr.org/



bsf.jar



script task


Note : Ant 1.6 and later require Apache BSF, not the IBM version. I.e. you need BSF 2.3.0-rc1 or later.


Note : BSF 2.4.0 is needed to use a post 1.5R3 version of rhino's javascript.


Note : BSF 2.4.0 uses jakarata-commons-logging so it needs the commons-logging.jar.



http://jakarta.apache.org/bsf/



Groovy jars



Groovy with script and scriptdef tasks
You need to get the groovy jar and two asm jars from a groovy installation. The jars are groovy-[version].jar, asm-[vesion].jar and asm-util-[version].jar and antlr-[version].jar. As of groovy version 1.0-JSR-06, the jars are groovy-1.0-JSR-06.jar, antlr-2.7.5.jar, asm-2.2.jar and asm-util-2.2.jar. Alternatively one may use the embedded groovy jar file. This is located in the embedded directory of the groovy distribution. This bundles all the needed jar files into one jar file. It is called groovy-all-[version].jar.



http://groovy.codehaus.org/
The asm jars are also available from the creators of asm - http://asm.objectweb.org/



netrexx.jar



netrexx task, Rexx with the script task



http://www.ibm.com/software/awdtools/netrexx/download.html



js.jar



Javascript with script task
If you use Apache BSF 2.3.0-rc1, you must use rhino 1.5R3 (later versions of BSF (e.g. version 2.4.0) work with 1.5R4 and higher).



http://www.mozilla.org/rhino/



jython.jar



Python with script task
Warning : jython.jar also contains classes from jakarta-oro. Remove these classes if you are also using jakarta-oro.



http://jython.sourceforge.net/



jpython.jar



Python with script task deprecated, jython is the prefered engine



http://www.jpython.org/



jacl.jar and tcljava.jar



TCL with script task



http://www.scriptics.com/software/java/



BeanShell JAR(s)



BeanShell with script task.
Note : Ant requires BeanShell version 1.3 or later



http://www.beanshell.org/



jruby.jar



Ruby with script task



http://jruby.sourceforge.net/



judo.jar



Judoscript with script task



http://www.judoscript.com/index.html



commons-logging.jar



CommonsLoggingListener



http://jakarta.apache.org/commons/logging/index.html



log4j.jar



Log4jListener



http://jakarta.apache.org/log4j/docs/index.html



commons-net.jar



ftp, rexec and telnet tasks
jakarta-oro 2.0.8 or later is required together with commons-net 1.4.0.
For all users, a minimum version of commons-net of 1.4.0 is recommended. Earlier versions did not support the full range of configuration options, and 1.4.0 is needed to compile Ant.



http://jakarta.apache.org/commons/net/index.html



bcel.jar



classfileset data type, JavaClassHelper used by the ClassConstants filter reader and optionally used by ejbjar for dependency determination



http://jakarta.apache.org/bcel/



mail.jar



Mail task with Mime encoding, and the MimeMail task



http://java.sun.com/products/javamail/



jsse.jar



Support for SMTP over TLS/SSL
in the Mail task
Already included Java 1.4+



http://java.sun.com/products/jsse/



activation.jar



Mail task with Mime encoding, and the MimeMail task



http://java.sun.com/products/javabeans/glasgow/jaf.html



jdepend.jar



jdepend task



http://www.clarkware.com/software/JDepend.html



resolver.jar 1.1beta or later



xmlcatalog datatype only if support for external catalog files is desired



http://xml.apache.org/commons/ .



jsch.jar 0.1.29 or later



sshexec and scp tasks



http://www.jcraft.com/jsch/index.html



JAI - Java Advanced Imaging



image task



http://java.sun.com/products/java-media/jai/



Starteam SDK



Starteam version management tasks



http://www.borland.com/downloads/download_starteam.html



Note:- All the jars need not to be used in your build process. so always take the dependency list for the project while using the ANT.


  << Prev: Introduction Next: Necessary Elements Of the Build File-1 >>
Java Ant Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
VoIP Internettelefonie AT
apple iphone 3g accessories
efaxing
Video Surveillance
 
 
ADVERTISEMENT
Partner List
Code Project
ASP Alliance
More
 
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising