Here is a class I added to the JRefinery jar file to save a file to JPEG: package com.jrefinery.chart.image; import java.awt.*; import java.awt.geom.*; import java.awt.image.*; import java.io.*; import com.jrefinery.chart.*; import com.sun.image.codec.jpeg.*; public class JPEG { public static void saveToFile(JFreeChart chart, String aFileName, int width, int height, double quality) throws FileNotFoundException, IOException { BufferedImage img = draw( chart, width, height ); FileOutputStream ...