To build ant in linux download the jfreechart package. Now you will need to build it using ant. If you don’t have ant installed you can install it using yum
yum install ant
Now try to build using ant
[root@computer jfreechart-1.0.13]# ant Buildfile: build.xml does not exist! Build failed
If you get this error you will need to change directory into the ant directory of jfreechart, then type ant
[root@computer jfreechart-1.0.13]# cd ant [root@computer ant]# ant
Successful build of jfreechart will look similar to the following
[root@computer jfreechart-1.0.13]# cd ant
[root@computer ant]# ant
Buildfile: build.xml
initialise:
compile:
[mkdir] Created dir: /root/software/jfreechart-1.0.13/build
[javac] Compiling 585 source files to /root/software/jfreechart-1.0.13/build
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/build/org/jfree/chart
[copy] Copying 12 files to /root/software/jfreechart-1.0.13/build/org/jfree/chart
[copy] Copying 9 files to /root/software/jfreechart-1.0.13/build/org/jfree/chart/plot
[copy] Copying 10 files to /root/software/jfreechart-1.0.13/build/org/jfree/chart/editor
[jar] Building jar: /root/software/jfreechart-1.0.13/lib/jfreechart-1.0.13.jar
[delete] Deleting directory /root/software/jfreechart-1.0.13/build
compile-experimental:
[mkdir] Created dir: /root/software/jfreechart-1.0.13/build
[javac] Compiling 5 source files to /root/software/jfreechart-1.0.13/build
[jar] Building jar: /root/software/jfreechart-1.0.13/lib/jfreechart-1.0.13-experimental.jar
[delete] Deleting directory /root/software/jfreechart-1.0.13/build
javadoc:
[mkdir] Created dir: /root/software/jfreechart-1.0.13/javadoc
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package org.jfree.chart...
[javadoc] Loading source files for package org.jfree.chart.annotations...
[javadoc] Loading source files for package org.jfree.chart.axis...
[javadoc] Loading source files for package org.jfree.chart.block...
[javadoc] Loading source files for package org.jfree.chart.demo...
[javadoc] Loading source files for package org.jfree.chart.editor...
[javadoc] Loading source files for package org.jfree.chart.encoders...
[javadoc] Loading source files for package org.jfree.chart.entity...
[javadoc] Loading source files for package org.jfree.chart.event...
[javadoc] Loading source files for package org.jfree.chart.imagemap...
[javadoc] Loading source files for package org.jfree.chart.labels...
[javadoc] Loading source files for package org.jfree.chart.needle...
[javadoc] Loading source files for package org.jfree.chart.panel...
[javadoc] Loading source files for package org.jfree.chart.plot...
[javadoc] Loading source files for package org.jfree.chart.plot.dial...
[javadoc] Loading source files for package org.jfree.chart.renderer...
[javadoc] Loading source files for package org.jfree.chart.renderer.category...
[javadoc] Loading source files for package org.jfree.chart.renderer.xy...
[javadoc] Loading source files for package org.jfree.chart.resources...
[javadoc] Loading source files for package org.jfree.chart.servlet...
[javadoc] Loading source files for package org.jfree.chart.title...
[javadoc] Loading source files for package org.jfree.chart.urls...
[javadoc] Loading source files for package org.jfree.chart.util...
[javadoc] Loading source files for package org.jfree.data...
[javadoc] Loading source files for package org.jfree.data.category...
[javadoc] Loading source files for package org.jfree.data.contour...
[javadoc] Loading source files for package org.jfree.data.function...
[javadoc] Loading source files for package org.jfree.data.gantt...
[javadoc] Loading source files for package org.jfree.data.general...
[javadoc] Loading source files for package org.jfree.data.io...
[javadoc] Loading source files for package org.jfree.data.jdbc...
[javadoc] Loading source files for package org.jfree.data.resources...
[javadoc] Loading source files for package org.jfree.data.statistics...
[javadoc] Loading source files for package org.jfree.data.time...
[javadoc] Loading source files for package org.jfree.data.time.ohlc...
[javadoc] Loading source files for package org.jfree.data.xml...
[javadoc] Loading source files for package org.jfree.data.xy...
[javadoc] Constructing Javadoc information...
[javadoc] Standard Doclet version 1.6.0_17
[javadoc] Building tree for all the packages and classes...
[javadoc] Building index for all the packages and classes...
[javadoc] Building index for all classes...
[copy] Copying 46 files to /root/software/jfreechart-1.0.13/javadoc/images
zip-javadocs:
[zip] Building zip: /root/software/jfreechart-1.0.13/jfreechart-1.0.13-javadocs.zip
fill-distribution:
[mkdir] Created dir: /root/software/jfreechart-1.0.13/distribution
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[copy] Copying 655 files to /root/software/jfreechart-1.0.13/distribution/source
[copy] Copying 5 files to /root/software/jfreechart-1.0.13/distribution/experimental
[copy] Copied 23 empty directories to 11 empty directories under /root/software/jfreechart-1.0.13/distribution/experimental
[copy] Copying 393 files to /root/software/jfreechart-1.0.13/distribution/tests
[copy] Copied 59 empty directories to 4 empty directories under /root/software/jfreechart-1.0.13/distribution/tests
[copy] Copying 17 files to /root/software/jfreechart-1.0.13/distribution/swt
[copy] Copying 46 files to /root/software/jfreechart-1.0.13/distribution/docfiles
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/lib
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/ant
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution/ant
[copy] Copying 5 files to /root/software/jfreechart-1.0.13/distribution/checkstyle
zip:
[zip] Building zip: /root/software/jfreechart-1.0.13/jfreechart-1.0.13.zip
targz:
[tar] Building tar: /root/software/jfreechart-1.0.13/jfreechart-1.0.13.tar
[tar] Entry: jfreechart-1.0.13/experimental/org/jfree/experimental/chart/renderer/xy/XYSmoothLineAndShapeRenderer.java longer than 100 characters.
[tar] Resulting tar file can only be processed successfully by GNU compatible tar commands
[tar] Entry: jfreechart-1.0.13/tests/org/jfree/chart/imagemap/junit/DynamicDriveToolTipTagFragmentGeneratorTests.java longer than 100 characters.
[tar] Entry: jfreechart-1.0.13/tests/org/jfree/chart/imagemap/junit/StandardToolTipTagFragmentGeneratorTests.java longer than 100 characters.
[tar] Entry: jfreechart-1.0.13/tests/org/jfree/chart/renderer/category/junit/AbstractCategoryItemRendererTests.java longer than 100 characters.
[tar] Entry: jfreechart-1.0.13/tests/org/jfree/chart/renderer/category/junit/DefaultCategoryItemRendererTests.java longer than 100 characters.
[tar] Entry: jfreechart-1.0.13/tests/org/jfree/chart/renderer/category/junit/StatisticalLineAndShapeRendererTests.java longer than 100 characters.
[tar] Entry: jfreechart-1.0.13/tests/org/jfree/data/statistics/junit/DefaultBoxAndWhiskerCategoryDatasetTests.java longer than 100 characters.
[gzip] Building: /root/software/jfreechart-1.0.13/jfreechart-1.0.13.tar.gz
[delete] Deleting: /root/software/jfreechart-1.0.13/jfreechart-1.0.13.tar
maven-bundle:
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[copy] Copying 1 file to /root/software/jfreechart-1.0.13/distribution
[jar] Building jar: /root/software/jfreechart-1.0.13/jfreechart-1.0.13-bundle.jar
[delete] Deleting directory /root/software/jfreechart-1.0.13/distribution
all:
BUILD SUCCESSFUL
Total time: 56 seconds
Leave a Reply
You must be logged in to post a comment.