Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Reports?

 
Lance Gray
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a simple way to create reports in Java?

What I want to do is to get a number of strings in an ArrayList of objects and then put them on a printable report. Also, i want to put values from a comma-separated file to the printable report.
I've found this JavaDoc but, based from what I've understood, it's not possible to design the report using this. (Correct me if I'm wrong)

So basically, I am looking for a simple report producing class/library that I only have to import on my project (no further installations and similar things) or at least a library that requires little time to study/be familiarized with.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15356
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JasperReports is a well-known Java reporting library, but I've not used it myself, so I can't tell you any details about it.
 
Lance Gray
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've looked around myself and also found JasperReports. However, I can't seem to find a tutorial or a documentation regarding on using it and importing it on my project.
 
Riaan Nel
Ranch Hand
Posts: 160
IntelliJ IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jesper de Jong wrote:JasperReports is a well-known Java reporting library, but I've not used it myself, so I can't tell you any details about it.

I can vouch for it. It's pretty powerful, and easy to use once you get the hang of it.

@OP
You can find a guide here; JasperReports Ultimate Guide
 
Lance Gray
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Riaan Nel wrote:
Jesper de Jong wrote:JasperReports is a well-known Java reporting library, but I've not used it myself, so I can't tell you any details about it.

I can vouch for it. It's pretty powerful, and easy to use once you get the hang of it.

@OP
You can find a guide here; JasperReports Ultimate Guide

Thank you very much for the link, I really appreciate it.

Another question. What should I download in order to put JasperReports on my project? I downloaded the ZIP and JAR files from sourceforge, just in case. When I try to open the contents of the ZIP file, it looks for an ANT build tool. When I open the JAR file, it says it can't open/read the manifest file. Am I doing things wrong?
 
Riaan Nel
Ranch Hand
Posts: 160
IntelliJ IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lance Gray wrote:
Riaan Nel wrote:
Jesper de Jong wrote:JasperReports is a well-known Java reporting library, but I've not used it myself, so I can't tell you any details about it.

I can vouch for it. It's pretty powerful, and easy to use once you get the hang of it.

@OP
You can find a guide here; JasperReports Ultimate Guide

Thank you very much for the link, I really appreciate it.

Another question. What should I download in order to put JasperReports on my project? I downloaded the ZIP and JAR files from sourceforge, just in case. When I try to open the contents of the ZIP file, it looks for an ANT build tool. When I open the JAR file, it says it can't open/read the manifest file. Am I doing things wrong?

Hi Lance

If you downloaded the JasperReports zip file, there should be a lib folder with a bunch of JAR files inside it. If memory serves me right, you have to copy those files to your JDK's lib folder. You'll also need to include the jasperreports-[version].jar file from the dist folder (in the zip file) as a library in your application. After you've done those two things, you should be good to go.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic