Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1249
  • Last Modified:

Eclipse Java, Reporting with JFreeChart

Hi everyone,

I am creating a simple Business Intelligence Tool in Java using Eclipse. I only need this tool to get some information off a desired database and then create some graphs and tables (reports).

I can connect to an oracle database and get all the information off of it. But now I need to create the reports. I was told to check some packages on this website :
http://java-source.net/open-source/charting-and-reporting

I took a look at some of the possible packages and decided I would give JFreeChart a try. But the problem is I have no idea how to connect it to my Eclipse application.
Do I need to import it? Do I need a plugin?

Can someone give me a step by step walkthrough of what I need to do.

How do I add the Freechart jars to your project's build path?
0
RicardoVGomes
Asked:
RicardoVGomes
  • 3
  • 3
  • 2
  • +1
1 Solution
 
CEHJCommented:
Better to use a 'user library'. See 6.2 for steps

http://www.awprofessional.com/articles/article.asp?p=367962&seqNum=2&rl=1
0
 
cavey_79Commented:
You might want to look into JasperReports - that will help you actually generating the reports. JFreeChart only handles the charting part of it, but JasperReports will allow you to save them as pdf, excel, html files etc.
Last time I used JasperReports there was a standalone application that came on the side helping you to create reports. Since then, a couple of eclipse plugins popped up for it. Not sure if they cover the charting part though.
0
 
RicardoVGomesAuthor Commented:
JasperReports looks really good, but I would have to use that software.... I want to use mine and just add a package that lets me create graphs/tables.....

Basically something that will allow me to click a button that will get all the relevant data and make a graph/table....


please help.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Mayank SAssociate Director - Product EngineeringCommented:
JFreeChart has a plugin I guess: http://cap.xore.de/cap.php?show=cap.deps

0
 
RicardoVGomesAuthor Commented:
I used this plugin.... and now when I go to "About Eclipse Platfrom" and choose plugins.... it shows that I am using JFreeChart Plugin..... but when I try to use the demo:

http://www.gashalot.com/software/JFreeChartSWTDemo.java.

eclipse still gives me errors in the imports.... as if I dont have any JFreeChart plugins....
0
 
cavey_79Commented:
You will probably have to manually set the classpath for the project to include the jfreechar jar file. Right-click on project name, select properties, go to build path, libraries and add the jar file (either using add if the jar file is located inside the project or add external jar if it's somewhere else.
0
 
RicardoVGomesAuthor Commented:
I just tried that using add externel jars, and it gave me an error saying :

Could not write file : blablabla.classpath
0
 
cavey_79Commented:
weird...I would suggest creating a new Eclipse project from scratch and adding those files to it. Are there any chances you might be using a version control system? Like SourceSafe?
0
 
CEHJCommented:
:-)
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now