Compile « Development « JFreeChart Q&A





1. Able to compile but unable to run Java from cmd with jar files    stackoverflow.com

I have a java file which uses jfreechart libraries, uses a text file from local drive and displays graph. Runs fine with eclipse. However, I want to run this from cmd ...

2. Compilation Error    jfree.org

Compilation Error by orlando.boomi Mon Dec 26, 2011 9:24 am Hi all, I am getting error while compiling the below code(javac PieChartDemo.java). PieChartDemo.java import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.data.general.DefaultPieDataset; public class PieChartDemo { public static void main(String[] args) { writeChartToPDF(generateBarChart(), 500, 400, "/media/abc/output1.pdf"); writeChartToPDF(generateBarChart(), 500, 400, "/media/abc/output2.pdf"); } public static void writeChartToPDF(JFreeChart chart, int width, int ...

3. Compile problems in Netbeans    jfree.org

Hi, I am new at using JFreeChart, and am going through the Chapter 4 Developer guide examples. I have added the jfree library to my libraries, and attempted to do the "ant compile" with ant. Maybe I am doing it wrong? When I compile, the following errors occur (basically they are not finding any of the jfree classes): init: deps-jar: Compiling ...

4. simple compile error    jfree.org

running sample code from the web but get this error all my classpaths and my path to java is correct... C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\JfreeTest>javac T heFuture.java TheFuture.java:29: cannot resolve symbol symbol : class XYSeries location: class TheFuture XYSeries series = new XYSeries("Linux Users"); ^ TheFuture.java:29: cannot resolve symbol symbol : class XYSeries location: class TheFuture XYSeries series = new XYSeries("Linux ...

5. compilation    jfree.org

hi guys, i have a package called charts which uses the jfreechart packages to produce the charts i need ... when i come to compile my java clases from the command line using: javac -classpath "charting\postgresql-8.0-311.jdbc3.jar;charting\jcommon-1.0.0-rc1.jar;charting\jfreechart-1.0.0-rc1.jar;charting\junit.jar;charting\servlet.jar;charting\gnujaxp.jar;charting" -sourcepath "charting" charting\charts\myBarChart.java it gives me the following error: charting\org\jfree\chart\JFreeChart.java:155: cannot find symbol symbol : class JCommon location: package org.jfree import org.jfree.JCommon; ^ charting\org\jfree\chart\JFreeChart.java:180: package ...

6. compile in command line    jfree.org

hi, i have written a program using the jfree libraries and it works fine with eclipse and and i need to run this on a command line since i will be piping a c program to the input of this proram that's why i need to run it in command line (the folloing is doen under linux and java 1.4.2) i ...

7. Unable to compile source code of jfreechart_sample    jfree.org

Hi, The src folder of "jfreechart_sample.war" contains four .java files. When I am try to compile WebHitChart.java and WebHitDataset.java it prodice following error messages. [root@localhost src]# javac WebHitChart.java WebHitChart.java:27: cannot resolve symbol symbol : class BarRenderer location: package renderer import org.jfree.chart.renderer.BarRenderer; ^ WebHitChart.java:28: cannot resolve symbol symbol : class StandardXYItemRenderer location: package renderer import org.jfree.chart.renderer.StandardXYItemRenderer; ^ WebHitChart.java:29: cannot resolve symbol symbol ...

8. Compiling the source    jfree.org

Hi, I'm trying to install Jfreechart. I downloaded the zip file and i unpacked the zip file as i read in the pdf file.I can run the demo file , but when i'm in the step 3.5.COMPILING THE SOURCE... i changed my work directory in ms2 to c:...\jfreechart1.0.0\ant and i typed the command: ant compile but i get an error message ...

9. Compile Problems... libs not being found    jfree.org

Hi there! I just downloaded 1.0.0. and i cant seem to compile any files! my compiler is not regognizing the lib files!!! package org.jfree.chart.demo; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.category.LineAndShapeRenderer; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.ui.ApplicationFrame; import org.jfree.ui.RefineryUtilities; Is calling it now different from older versions?? Many ...





11. COMPILATION PROBLEM!!!! help plzzzzzz......URGENT    jfree.org

hi... we have sucessfully run all the demos. Then after we made our own application file which we stored in followin path... C:\Program Files\java\jdk1.5.0\jfreechart-0.8.1\source\com\jrefinery\chart\demo> The name of our application file is ChartDemo1.java We are compiling it in the following way : C:\Program Files\java\jdk1.5.0\bin> javac JFreeChart-0.8.1.source.com.jrefinery.chart.demo.ChartDemo1.java The error we get is : error : cannot read : JFreeChart-0.8.1.source.com.jrefinery.chart.demo.ChartDemo1.java so plz tell how ...

12. we sincerely need ur help for compilation problem.......    jfree.org

hi... V hv The Complete Reference and Daneil Liang . So thanks 4 the " harsh but fair " reply. We just want to ask u that whenever u make ur own application how will u compile it??? can u actually help us ???? we r project Trainees and ur our guide so please help us..... bye...................

13. Compile error: missing org/jfree/util/PublicCloneable    jfree.org

David, I have a problem with a missing class called org/jfree/util/PublicCloneable. My Debian compiler complains about this class to be missing and does not compile my project since I upgraded to JFreeChart 1.0.1. No probs on Windows. [javac] /src/../webapp/model/StatisticsModel.java:76: cannot access org.jfree.util.PublicCloneable [javac] file org/jfree/util/PublicCloneable.class not found [javac] ((XYPlot) jfc.getPlot()).getDomainAxis().setVisible(false); [javac] ^ After adding this class manually everything went well. Any ...

14. Ambiguous method error compiling with java 1.5    jfree.org

import org.jfree.data.category.DefaultCategoryDataset; public class Test { public static void main(String[] args) { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.setValue(new Integer(1234), "blah", "blah"); // or ...

15. Compile Error    jfree.org

16. Compiling Demos in BlueJ    jfree.org





17. Compile error: Element type "sectionHyperlink" mus    jfree.org

Hi, I have a Jasper Report with a pie chart in the Summary band. Without the chart, the report works fine. When I put the chart in and I compile the report, I get the following error: ERROR [main] (Digester.java:1538) - Parse Error at line 516 column 24: Element type "sectionHyperlink" must be declared. org.xml.sax.SAXParseException: Element type "sectionHyperlink" must be declared. ...

18. Compiling sample code on Iseries    jfree.org

I have uploaded the sample code to the Iseries and I believe followed all the instructions in JFREECHRT4 source code. However, when I create the Module I receive the following error at the bottom of the spool file. C o d e G e n e r a t i o n M e s s a g e s Literal ...

19. Compilation problem    jfree.org

Compilation problem by mattyeux Wed Oct 25, 2006 9:48 am Hello, I try to use JFreeChart Library but I meet some difficulties in compilation. I want to compile this program (which is in the reference documentation): Code: Select all package com.jrefinery.chart.demo; import com.jrefinery.data.DefaultPieDataset; import com.jrefinery.chart.ChartFactory; import com.jrefinery.chart.JFreeChart; import com.jrefinery.chart.ChartFrame; public class First { public static void main(String[] args) ...

20. Compile problem: getListeners()    jfree.org

21. compile jar ok but...    jfree.org

With jdk 1.4, I compiled successfully a jar (jfreechart-1.0.4 + jcommon-1.0.8 both) but I do not arrive to use this jar...(Gant Chart...) Here is my error : -java.lang.UnsupportedClassVersionError: org/jfree/ui/ApplicationFrame (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.ClassLoader.defineClass0(Native ...

22. Error While compiling    jfree.org

23. Compilation errors - Class files missing    jfree.org

Compilation errors - Class files missing by knagarajan Tue Jul 17, 2007 4:47 pm Hi, I rencently upgraded the jfreechart application library from jfreechart-0.9.8.jar to jfreechart-1.0.6.jar to use in our application. I get the following compilation errors when I compile my classes where I was using the jfreechart. Could anyone help resolving them please? Apparently some classes were moved between ...

24. How to compile JFreeChart using proguard?    jfree.org

I need to compile JFreeChart without Ant, and make a small jar file. But, when a will generate the jar file, with proguard, it returns the following message: Error: The output jar is empty. Did you specify the proper '-keep' options? What i must to put in "keep" parameter?? I have already read proguard documentation, but everything I put there results ...

26. Trouble Compiling    jfree.org

Hey all, I've been using JFreeChart for a while for a project for a professor at my university. It was all going well, and in fact, I was able to compile this program before. But now he wanted the entire thing deployed to a number of Windows 7 Laptops. I actually was able to move it without recompiling the whole thing ...