• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cewolf DataProducer Error while compiling

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have installed cewolf on Tomcat6.0 and the examples are running fine. I have written a example dataproducer java file mentioned below.

package de.laures.cewolf.example;

import java.io.*;
import java.util.*;

//import org.apache.common.*;
import org.jfree.data.category.*;

import de.laures.cewolf.*;

public class SimpleDataProvider implements DatasetProducer, Serializable{
public String getProducerId(){
return "de.laures.cewolf.example.simpledata";
}
public boolean hasExpired(Map arg0, Date arg1){
return false;
}
public Object produceDataSet(Map arg0) throws DatasetProduceException{
DefaultCategoryDataset dataset=new DefaultCategoryDataset();
for (int i=1;i<=10;i++){
dataset.addValue(i*1,"first series",new Integer(i));
}
return dataset;
}
}

I am getting 2 compilation errors when i am trying to compile this file. I think it is not able to find the DatasetProducer interface and DatasetProduceException class.

I work on windows. My cewolfexamples are in "C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\cewolfexample-1.0\WEB-INF". The WEB-INF has all the required directories and files cause I am able to run the example application. I have written this java file in "c:\java" directory and trying to compile it from there. Please tell me if I have to specify any classpath if so what should be the classpath and how do I set it.

--
Mazhar
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

What command are you using for compilation? How are you adding the cewolf jar file to the classpath?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please UseTheForumNotEmail, and if you use PMs, make sure you allow people to send them to you.

When you compile, make sure you have all required jar files (cewolf, jfreechart and jcommon) in the classpath.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic