davidgarratt Posted June 6, 2018 Share Posted June 6, 2018 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 advanceDave Link to comment Share on other sites More sharing options...
hozawa Posted June 7, 2018 Share Posted June 7, 2018 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 Link to comment Share on other sites More sharing options...
davidgarratt Posted June 7, 2018 Author Share Posted June 7, 2018 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. Link to comment Share on other sites More sharing options...
davidgarratt Posted June 7, 2018 Author Share Posted June 7, 2018 For example - looking at the jars downloads by ant-ivy I get this list ant-1.7.1.jarantlr-2.7.5.jarbarbecue-1.5-beta1.jarbarcode4j-2.1.jarbatik-anim-1.9.jarbatik-awt-util-1.9.jarbatik-bridge-1.9.jarbatik-constants-1.9.jarbatik-css-1.9.jarbatik-dom-1.9.jarbatik-gvt-1.9.jarbatik-i18n-1.9.jarbatik-svg-dom-1.9.jarbatik-svggen-1.9.jarbatik-util-1.9.jarbsh-2.0b6.jarcastor-core-1.3.3.jarcastor-xml-1.3.3.jarcommons-beanutils-1.9.3.jarcommons-codec-1.5.jarcommons-collections-3.2.2.jarcommons-digester-2.1.jarcommons-logging-1.1.1.jarcommons-pool2-2.4.2.jarcore-3.2.1.jarecj-4.4.2.jargroovy-all-2.4.5.jarhibernate-core-3.3.2.GA.jarhttpclient-4.3.6.jarhttpcore-4.3.3.jaricu4j-57.1.jaritext-2.1.7.js6.jarjackson-annotations-2.9.5.jarjackson-core-2.9.5.jarjackson-databind-2.9.5.jarjasperreports-annotation-processors-6.6.0.jarjasperreports-metadata-6.6.0.jarjaxen-1.1.1.jarjcommon-1.0.23.jarjfreechart-1.0.19.jarlucene-analyzers-common-7.3.0.jarlucene-core-7.3.0.jarlucene-queryparser-7.3.0.jarmondrian-3.1.1.12687.jarnet.tascalate.javaflow.api-2.2.1.jarnet.tascalate.javaflow.tools.ant-2.2.1.jarolap4j-0.9.7.309-JS-3.jarpersistence-api-1.0.jarpoi-3.15.jarpoi-ooxml-3.15.jarrhino-1.7.6.jarservlet-api-2.4.jarspring-beans-3.2.18.RELEASE.jarspring-core-3.2.18.RELEASE.jarvelocity-1.7.jarxalan-2.7.2.jarxml-apis-ext-1.3.04.jarxmpcore-5.1.1.jar Link to comment Share on other sites More sharing options...
davidgarratt Posted June 7, 2018 Author Share Posted June 7, 2018 Whereas Maven gives me this this, ant-1.7.1.jarant-launcher-1.7.1.jarantlr-2.7.5.jarasm-5.2.jarasm-analysis-5.2.jarasm-tree-5.2.jaravalon-framework-impl-4.2.0.jarbarbecue-1.5-beta1.jarbarcode4j-2.1.jarbatik-anim-1.9.jarbatik-awt-util-1.9.jarbatik-bridge-1.9.jarbatik-constants-1.9.jarbatik-css-1.9.jarbatik-dom-1.9.jarbatik-ext-1.9.jarbatik-gvt-1.9.jarbatik-i18n-1.9.jarbatik-parser-1.9.jarbatik-script-1.9.jarbatik-svg-dom-1.9.jarbatik-svggen-1.9.jarbatik-util-1.9.jarbatik-xml-1.9.jarbcprov-jdk15on-1.52.jarbsh-2.0b4.jarbsh-2.0b6.jarcastor-core-1.3.3.jarcastor-xml-1.3.3.jarcommons-beanutils-1.9.3.jarcommons-cli-1.0.jarcommons-codec-1.10.jarcommons-collections-3.2.2.jarcommons-collections4-4.1.jarcommons-dbcp-1.2.jarcommons-digester-2.1.jarcommons-discovery-0.2.jarcommons-io-1.3.1.jarcommons-lang-2.6.jarcommons-logging-1.1.1.jarcommons-math-1.0.jarcommons-pool-1.3.jarcommons-pool2-2.4.2.jarcommons-vfs-1.0.jarcore-3.2.1.jarcurvesapi-1.04.jardom4j-1.6.1.jarecj-4.4.2.jareigenbase-properties-1.1.0.10924.jareigenbase-resgen-1.3.0.11873.jareigenbase-xom-1.3.0.11999.jargroovy-all-2.4.5.jarhamcrest-core-1.1.jarhibernate-core-3.3.2.GA.jarhttpclient-4.3.6.jarhttpcore-4.3.3.jaricu4j-57.1.jaritext-2.1.7.js6.jarjackson-annotations-2.9.5.jarjackson-core-2.9.5.jarjackson-databind-2.9.5.jarjasperreports-fonts-6.0.0.jarjasperreports-metadata-6.6.0.jarjavacup-0.10k.jarjavax.inject-1.jarjaxen-1.1.1.jarjcommander-1.27.jarjcommon-1.0.23.jarjdom-1.0.jarjfreechart-1.0.19.jarjunit-4.10.jarlog4j-api-2.8.2.jarlog4j-core-2.8.2.jarlog4j-jcl-2.8.2.jarlucene-analyzers-common-7.3.0.jarlucene-core-7.3.0.jarlucene-queries-7.3.0.jarlucene-queryparser-7.3.0.jarlucene-sandbox-7.3.0.jarmondrian-3.1.1.12687.jarnet.tascalate.javaflow.api-2.2.1.jarnet.tascalate.javaflow.providers.asm5-2.2.1.jarnet.tascalate.javaflow.spi-2.2.1.jarnet.tascalate.javaflow.tools.ant-2.2.1.jarnet.tascalate.javaflow.tools.jar-2.2.1.jarolap4j-0.9.7.309-JS-3.jarpersistence-api-1.0.jarpoi-3.15.jarpoi-ooxml-3.15.jarpoi-ooxml-schemas-3.15.jarrhino-1.7.6.jarsaaj-api-1.3.jarserializer-2.7.2.jarservlet-api-2.4.jarslf4j-api-1.5.8.jarsnakeyaml-1.6.jarspring-beans-3.2.18.RELEASE.jarspring-core-3.2.18.RELEASE.jarstax-1.2.0.jarstax-api-1.0-2.jarstax-api-1.0.1.jartestng-6.8.1.jarvelocity-1.7.jarxalan-2.7.2.jarxml-apis-1.3.02.jarxml-apis-ext-1.3.04.jarxmlParserAPIs-2.6.2.jarxmlbeans-2.6.0.jarxmlgraphics-commons-2.2.jarxmpcore-5.1.1.jarxom-1.0.jar Link to comment Share on other sites More sharing options...
davidgarratt Posted June 7, 2018 Author Share Posted June 7, 2018 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 alljarsWhen 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 filesWhen 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.jarantlr-2.7.5.jarasm-all-4.0.jarbarbecue-1.5-beta1.jarbarcode4j-2.1.jarbatik-anim-1.9.jarbatik-awt-util-1.9.jarbatik-bridge-1.9.jarbatik-constants-1.9.jarbatik-css-1.9.jarbatik-dom-1.9.jarbatik-gvt-1.9.jarbatik-i18n-1.9.jarbatik-svg-dom-1.9.jarbatik-svggen-1.9.jarbatik-util-1.9.jarbsh-2.0b6.jarcastor-core-1.3.3.jarcastor-xml-1.3.3.jarcommons-beanutils-1.9.3.jarcommons-codec-1.5.jarcommons-collections-3.2.2.jarcommons-digester-2.1.jarcommons-javaflow-20160505.jarcommons-logging-1.1.1.jarcommons-pool2-2.4.2.jarcore-3.2.1.jarecj-4.4.2.jargroovy-all-2.4.5.jarhibernate-core-3.3.2.GA.jarhttpclient-4.3.6.jarhttpcore-4.3.3.jaricu4j-57.1.jaritext-2.1.7.js6.jarjackson-annotations-2.1.4.jarjackson-core-2.1.4.jarjackson-databind-2.1.4.jarjasperreports-annotation-processors-6.5.1.jarjasperreports-metadata-6.5.1.jarjaxen-1.1.1.jarjcommon-1.0.23.jarjfreechart-1.0.19.jarlucene-analyzers-common-4.5.1.jarlucene-core-4.5.1.jarlucene-queryparser-4.5.1.jarmondrian-3.1.1.12687.jarolap4j-0.9.7.309-JS-3.jarpersistence-api-1.0.jarpoi-3.15.jarpoi-ooxml-3.15.jarrhino-1.7.6.jarservlet-api-2.4.jarspring-beans-3.2.18.RELEASE.jarspring-core-3.2.18.RELEASE.jarvelocity-1.7.jarxalan-2.7.2.jarxml-apis-ext-1.3.04.jarxmpcore-5.1.1.jar Link to comment Share on other sites More sharing options...
djohnson53 Posted June 7, 2018 Share Posted June 7, 2018 I'm happy to see you received an answer. Link to comment Share on other sites More sharing options...
davidgarratt Posted June 7, 2018 Author Share Posted June 7, 2018 Well I did pose a number of solutions to my own question but I'm not sure if any of them are correct. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now