Hi, I tried to create my own line chart in linux but I can't seem to compile it properly......
This is what I enter in the command prompt:
/usr/java/j2sdk1.4.1_05/bin/javac - classpath /user/java/j2sdk1.4.1_05/
jcommon-0.9.1.jar:/root/ClumsyV9:/usr/java/j2sdk1.4.1_05/jfreechart-0.9.16.jar Temp.java
But I always end up with the following errors:
/root/ClumsyV9/SystemMonitorGraph.java:108: cannot access org.jfree.util.PublicCloneable
file org/jfree/util/PublicCloneable.class not found
axis.setFixedAutoRange(60000.0); // 60 seconds
^
/root/ClumsyV9/SystemMonitorGraph.java:176: cannot access org.jfree.ui.Drawable
file org/jfree/ui/Drawable.class not found
ChartPanel chartPanel2 = new ChartPanel(chart2);
^
/root/ClumsyV9/SystemMonitorGraph.java:204: cannot resolve symbol
symbol : variable chartPanel
location: class SystemMonitorGraph
content.add(chartPanel);
^
/root/ClumsyV9/SystemMonitorGraph.java:234: cannot resolve symbol
symbol : variable chartPanel
location: class SystemMonitorGraph
chartPanel.setBounds(10, 10, 600, 170);
^
4 errors
What should I do?
Thanks,
Jessamine
Problem Compiling in Linux
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
It is not finding jcommon-0.9.1.jar, so double check where that file is and how you have referred to it in the classpath.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

