Jump to content
We've recently updated our Privacy Statement, available here ×

about jasperreport zip file


thirumalesh.143142

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Disclaimer: I haven't ever really learned or used Ivy (or Maven or other dependency managers).  This might not be best practice, it's just me flailing to try to get something to work, especially at step 7.

Since there is no longer a proper distribution that contains the required files, my attempt at getting all of the necessary dependencies went like this:

1. Download Apache Ant from http://ant.apache.org/.

2. Download Apache Ivy from http://ant.apache.org/ivy/

3. According to http://stackoverflow.com/questions/12677816/ant-target-failing-antlib-or-ivy-issue you should copy the ivy JAR file into ANT:
copy C:devapacheivyapache-ivy-2.4.0ivy-2.4.0.jar C:devapacheantapache-ant-1.9.7lib

4. Make sure the "bin" folder under ANT is in your path, and that you have JAVA_HOME set to your favorite JDK (1.7 or higher).

5. Change into the unzipped jasperreport-6.3.0-project.zip folder, and type "ant -p" to see what targets are available.

6. Try "ant retrievelibs".  Ant should then use ivy to download a bunch of files.  It took about 80 seconds on my machine.  FYI: If you really want to build JasperReports jars, try "ant alljars".

At this step, I had problems with errors.  I removed my .ivy2 folder ("rd /s C:Usersmyuserfolder.ivy2") and tried it again, and it seemed to build.  Then "dir /s *.jar" reveals only the jasperreports jars, not the dependencies.

7. Since I started with a clean .ivy2 folder, I can dir a "dir /s C:Usersmyuserfolder.ivy2*.jar" and get a list of only the JAR files it downloaded for building JasperReports.  I don't know what the best practice is, but I individually copied out the following files:

  • groovy-all-2.4.5.jar
  • commons-logging-1.1.1.jar
  • commons-digester-2.1.jar
  • commons-collections-3.2.2
  • commons-beanutils-1.9.0
  • poi-3.10.1.jar
  • jfreechart-1.0.19.jar
  • jcommon-1.0.23.jar

Depending on what features you are using in your reports, you may need more or fewer JAR files.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...