JAR dependencies for version 6.6.0

0

I am using the JasperReports library from a desktop Java Swing (not Spring) application and I need to know the correct way to download/build a list of all the dependent jar files that I need to put in my classpath with the JasperReports libraries.

When I use ant-ivy I get a different set of files to when I use maven.

I'm sure there must be a way to clarify this as whenever I update the version of JasperReports I need to also amend the jars that I bundle with it. I am currently trying to determine the correct list of jars for 6.6.0. I will then hopefully be able to repeat the process with other versions and use a tool like Beyond Compare to generate a list of new/obsolete files.

If someone would clarify it would be very helpfuil. I'm not a ant or maven guru I'm afraid to say.

Thanks in advance

Dave

davidgarratt's picture
Joined: Sep 17 2013 - 8:13pm
Last seen: 1 month 3 weeks ago

I'm happy to see you received an answer.

djohnson53 - 1 year 2 months ago

Well I did pose a number of solutions to my own question but I'm not sure if any of them are correct.

davidgarratt - 1 year 2 months ago

5 Answers:

0

Required jars depends on which functions you're using. At least, you'll need those listed in commons and jrxml but others depends on whether you'll be exporting to xlsx/pdf and using charts, barcodes, etc. 

https://community.jaspersoft.com/wiki/jasperreports-library-requirements

hozawa's picture
46877
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 months 1 week ago
0

I was rather hoping for a way to automatically generate a list if files. There a jar files referenced in maven which are not refered to in that html document.

davidgarratt's picture
Joined: Sep 17 2013 - 8:13pm
Last seen: 1 month 3 weeks ago
0

For example - looking at the jars downloads by ant-ivy I get this list 


ant-1.7.1.jar
antlr-2.7.5.jar
barbecue-1.5-beta1.jar
barcode4j-2.1.jar
batik-anim-1.9.jar
batik-awt-util-1.9.jar
batik-bridge-1.9.jar
batik-constants-1.9.jar
batik-css-1.9.jar
batik-dom-1.9.jar
batik-gvt-1.9.jar
batik-i18n-1.9.jar
batik-svg-dom-1.9.jar
batik-svggen-1.9.jar
batik-util-1.9.jar
bsh-2.0b6.jar
castor-core-1.3.3.jar
castor-xml-1.3.3.jar
commons-beanutils-1.9.3.jar
commons-codec-1.5.jar
commons-collections-3.2.2.jar
commons-digester-2.1.jar
commons-logging-1.1.1.jar
commons-pool2-2.4.2.jar
core-3.2.1.jar
ecj-4.4.2.jar
groovy-all-2.4.5.jar
hibernate-core-3.3.2.GA.jar
httpclient-4.3.6.jar
httpcore-4.3.3.jar
icu4j-57.1.jar
itext-2.1.7.js6.jar
jackson-annotations-2.9.5.jar
jackson-core-2.9.5.jar
jackson-databind-2.9.5.jar
jasperreports-annotation-processors-6.6.0.jar
jasperreports-metadata-6.6.0.jar
jaxen-1.1.1.jar
jcommon-1.0.23.jar
jfreechart-1.0.19.jar
lucene-analyzers-common-7.3.0.jar
lucene-core-7.3.0.jar
lucene-queryparser-7.3.0.jar
mondrian-3.1.1.12687.jar
net.tascalate.javaflow.api-2.2.1.jar
net.tascalate.javaflow.tools.ant-2.2.1.jar
olap4j-0.9.7.309-JS-3.jar
persistence-api-1.0.jar
poi-3.15.jar
poi-ooxml-3.15.jar
rhino-1.7.6.jar
servlet-api-2.4.jar
spring-beans-3.2.18.RELEASE.jar
spring-core-3.2.18.RELEASE.jar
velocity-1.7.jar
xalan-2.7.2.jar
xml-apis-ext-1.3.04.jar
xmpcore-5.1.1.jar
 

davidgarratt's picture
Joined: Sep 17 2013 - 8:13pm
Last seen: 1 month 3 weeks ago
1

Whereas Maven gives me this this,

 


ant-1.7.1.jar
ant-launcher-1.7.1.jar
antlr-2.7.5.jar
asm-5.2.jar
asm-analysis-5.2.jar
asm-tree-5.2.jar
avalon-framework-impl-4.2.0.jar
barbecue-1.5-beta1.jar
barcode4j-2.1.jar
batik-anim-1.9.jar
batik-awt-util-1.9.jar
batik-bridge-1.9.jar
batik-constants-1.9.jar
batik-css-1.9.jar
batik-dom-1.9.jar
batik-ext-1.9.jar
batik-gvt-1.9.jar
batik-i18n-1.9.jar
batik-parser-1.9.jar
batik-script-1.9.jar
batik-svg-dom-1.9.jar
batik-svggen-1.9.jar
batik-util-1.9.jar
batik-xml-1.9.jar
bcprov-jdk15on-1.52.jar
bsh-2.0b4.jar
bsh-2.0b6.jar
castor-core-1.3.3.jar
castor-xml-1.3.3.jar
commons-beanutils-1.9.3.jar
commons-cli-1.0.jar
commons-codec-1.10.jar
commons-collections-3.2.2.jar
commons-collections4-4.1.jar
commons-dbcp-1.2.jar
commons-digester-2.1.jar
commons-discovery-0.2.jar
commons-io-1.3.1.jar
commons-lang-2.6.jar
commons-logging-1.1.1.jar
commons-math-1.0.jar
commons-pool-1.3.jar
commons-pool2-2.4.2.jar
commons-vfs-1.0.jar
core-3.2.1.jar
curvesapi-1.04.jar
dom4j-1.6.1.jar
ecj-4.4.2.jar
eigenbase-properties-1.1.0.10924.jar
eigenbase-resgen-1.3.0.11873.jar
eigenbase-xom-1.3.0.11999.jar
groovy-all-2.4.5.jar
hamcrest-core-1.1.jar
hibernate-core-3.3.2.GA.jar
httpclient-4.3.6.jar
httpcore-4.3.3.jar
icu4j-57.1.jar
itext-2.1.7.js6.jar
jackson-annotations-2.9.5.jar
jackson-core-2.9.5.jar
jackson-databind-2.9.5.jar
jasperreports-fonts-6.0.0.jar
jasperreports-metadata-6.6.0.jar
javacup-0.10k.jar
javax.inject-1.jar
jaxen-1.1.1.jar
jcommander-1.27.jar
jcommon-1.0.23.jar
jdom-1.0.jar
jfreechart-1.0.19.jar
junit-4.10.jar
log4j-api-2.8.2.jar
log4j-core-2.8.2.jar
log4j-jcl-2.8.2.jar
lucene-analyzers-common-7.3.0.jar
lucene-core-7.3.0.jar
lucene-queries-7.3.0.jar
lucene-queryparser-7.3.0.jar
lucene-sandbox-7.3.0.jar
mondrian-3.1.1.12687.jar
net.tascalate.javaflow.api-2.2.1.jar
net.tascalate.javaflow.providers.asm5-2.2.1.jar
net.tascalate.javaflow.spi-2.2.1.jar
net.tascalate.javaflow.tools.ant-2.2.1.jar
net.tascalate.javaflow.tools.jar-2.2.1.jar
olap4j-0.9.7.309-JS-3.jar
persistence-api-1.0.jar
poi-3.15.jar
poi-ooxml-3.15.jar
poi-ooxml-schemas-3.15.jar
rhino-1.7.6.jar
saaj-api-1.3.jar
serializer-2.7.2.jar
servlet-api-2.4.jar
slf4j-api-1.5.8.jar
snakeyaml-1.6.jar
spring-beans-3.2.18.RELEASE.jar
spring-core-3.2.18.RELEASE.jar
stax-1.2.0.jar
stax-api-1.0-2.jar
stax-api-1.0.1.jar
testng-6.8.1.jar
velocity-1.7.jar
xalan-2.7.2.jar
xml-apis-1.3.02.jar
xml-apis-ext-1.3.04.jar
xmlParserAPIs-2.6.2.jar
xmlbeans-2.6.0.jar
xmlgraphics-commons-2.2.jar
xmpcore-5.1.1.jar
xom-1.0.jar
 

davidgarratt's picture
Joined: Sep 17 2013 - 8:13pm
Last seen: 1 month 3 weeks ago
0

Ths is the approach I've used in the past but there is some guesswork involved.

I use MacOS. I have Apache apache-ant-1.10.1 and apache-ivy-2.4.0. During the build I know there is a hidden folder .ivy2 in my home folder where files are placed. Before I start I delete the cache folder from .ivy2.

I download the project file for JasperReports 6.6.0 and open a terminal. I change into the project folder and run the command.

ant alljars

When its complete I use a command which copies all the files from the directory tree created in the cache folder and put them into a single flat folder without subfolders.

I then delete all non .jar files

When I do this with 6.6.0 I end up with this list.  Comments / better ways of determining the dependent jars most welcome.


ant-1.7.1.jar
antlr-2.7.5.jar
asm-all-4.0.jar
barbecue-1.5-beta1.jar
barcode4j-2.1.jar
batik-anim-1.9.jar
batik-awt-util-1.9.jar
batik-bridge-1.9.jar
batik-constants-1.9.jar
batik-css-1.9.jar
batik-dom-1.9.jar
batik-gvt-1.9.jar
batik-i18n-1.9.jar
batik-svg-dom-1.9.jar
batik-svggen-1.9.jar
batik-util-1.9.jar
bsh-2.0b6.jar
castor-core-1.3.3.jar
castor-xml-1.3.3.jar
commons-beanutils-1.9.3.jar
commons-codec-1.5.jar
commons-collections-3.2.2.jar
commons-digester-2.1.jar
commons-javaflow-20160505.jar
commons-logging-1.1.1.jar
commons-pool2-2.4.2.jar
core-3.2.1.jar
ecj-4.4.2.jar
groovy-all-2.4.5.jar
hibernate-core-3.3.2.GA.jar
httpclient-4.3.6.jar
httpcore-4.3.3.jar
icu4j-57.1.jar
itext-2.1.7.js6.jar
jackson-annotations-2.1.4.jar
jackson-core-2.1.4.jar
jackson-databind-2.1.4.jar
jasperreports-annotation-processors-6.5.1.jar
jasperreports-metadata-6.5.1.jar
jaxen-1.1.1.jar
jcommon-1.0.23.jar
jfreechart-1.0.19.jar
lucene-analyzers-common-4.5.1.jar
lucene-core-4.5.1.jar
lucene-queryparser-4.5.1.jar
mondrian-3.1.1.12687.jar
olap4j-0.9.7.309-JS-3.jar
persistence-api-1.0.jar
poi-3.15.jar
poi-ooxml-3.15.jar
rhino-1.7.6.jar
servlet-api-2.4.jar
spring-beans-3.2.18.RELEASE.jar
spring-core-3.2.18.RELEASE.jar
velocity-1.7.jar
xalan-2.7.2.jar
xml-apis-ext-1.3.04.jar
xmpcore-5.1.1.jar
 

 

davidgarratt's picture
Joined: Sep 17 2013 - 8:13pm
Last seen: 1 month 3 weeks ago
Feedback
randomness