Happy Coding

Libary stuff (where to locate, how to link)


#1

Hello,
thanks for the description and the example of the bar chart. I am glad to get it running.

However I did libary handling another way.
My installation is portable (cmd javac is not possible).

My way (in Eclipse):
1 make a java project
2 make a java folder lib or so
3 drag/drop the jar files of the JChartLibary in this folder with explorer to eclipse
4 right mouse click on src.“Build Path”, “Configure build path” TAB Libary. Add the jars from the folder.
5 generate your Class with main and import relevant libaries

import javax.swing.JFrame;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.DefaultCategoryDataset;

public class JChartTest1 {…


#2

Sure, I think that’s fine. In the end you’re just setting the classpath, and there are a couple different ways to do that. As long as it works, I say go for it!