Can't Compile my new PageViewCountData.java

Help
Fabio RAM
2006-08-14
2013-01-13
  • Fabio RAM
    Fabio RAM
    2006-08-14

    Hi Folks,

    I can't compile the tutorial PageViewCountData.class with some modifications.
    I'm using the default example PageViewCountData.class (from cewolfexample-1.0.war) to provide the tutorial graph.
    And PageViewCountData.class from cewolfexample-1.0.war example works fine and i'm the using package library
    from cewolfexample-1.0.war.
    My cewolf dir:
    machine:/opt/tomcat4/jakarta-tomcat-4.1.24/webapps/myapp/cewolf

    My lib directory is:
    Everithing on tutorial was did include the copy of jar files to my WEB-INF/lib

    machine:/opt/tomcat4/jakarta-tomcat-4.1.24/webapps/myapp/WEB-INF/lib# ls
    classes12.zip.old servlet.jar
    batik-awt-util-1.6.jar cewolf-1.0-bundle-2.jar commons-fileupload-1.0.jar teste.sh
    batik-dom-1.6.jar cewolf-1.0.jar commons-logging-1.0.4.jar 
    batik-svggen-1.6.jar classes12.jar jcommon-1.0.0.jar 
    batik-util-1.6.jar classes12.jar.old jfreechart-1.0.0.jar 
    batik-xml-1.6.jar classes12.zip ojdbc14.jar xmlparserv2.jar
    machine:/opt/tomcat4/jakarta-tomcat-4.1.24/webapps/myapp/WEB-INF/lib#

    My classes dir is:

    machine:/opt/tomcat4/jakarta-tomcat-4.1.24/webapps/myapp/WEB-INF/classes/de/laures/cewolf/example# ll
    total 66
    -rw-r--r-- 1 root sys 1167 Aug 10 11:57 ConnectionFactory.class
    -rw-r--r-- 1 root sys 1662 Aug 10 11:56 ConnectionFactory.java
    -rw-r--r-- 1 root sys 1011 Aug 2 18:58 ExtraTitleEnhancer.class
    -rw-r--r-- 1 root sys 1062 Aug 2 18:58 HighLowDatasetProducer.class
    -rw-r--r-- 1 root sys 1151 Aug 2 18:58 PageViewCountData$1.class
    -rw-r--r-- 1 root sys 4013 Aug 2 18:58 PageViewCountData.class
    -rw-r--r-- 1 root sys 4013 Aug 10 11:58 PageViewCountData.class_bak
    -rw-r--r-- 1 root sys 6482 Aug 10 15:59 PageViewCountData.java
    -rw-r--r-- 1 root sys 5321 Aug 2 18:58 ParamBean.class
    -rw-r--r-- 1 root sys 2874 Aug 2 18:58 RandomXYData.class

    So based on the same structure that i described on last post i tried to compile a new PageViewCountData.java and i had this:

    machine:/opt/tomcat4/jakarta-tomcat-4.1.24/webapps/myapp/WEB-INF/classes/de/laures/cewolf/example#javac -deprecation PageViewCountData.java

    PageViewCountData.java:24: package org.jfree.data does not exist
    import org.jfree.data.CategoryDataset;
    ^
    PageViewCountData.java:25: package org.jfree.data does not exist
    import org.jfree.data.DefaultCategoryDataset;
    ^
    PageViewCountData.java:26: package de.laures.cewolf does not exist
    import de.laures.cewolf.DatasetProduceException;
    ^
    PageViewCountData.java:27: package de.laures.cewolf does not exist
    import de.laures.cewolf.DatasetProducer;
    ^
    PageViewCountData.java:28: package de.laures.cewolf does not exist
    import de.laures.cewolf.CategoryItemLinkGenerator;
    ^
    PageViewCountData.java:29: package org.apache.commons.logging does not exist
    import org.apache.commons.logging.Log;
    ^
    PageViewCountData.java:30: package org.apache.commons.logging does not exist
    import org.apache.commons.logging.LogFactory;
    ^
    PageViewCountData.java:31: package org.jfree.chart.entity does not exist
    import org.jfree.chart.entity.CategoryItemEntity;
    ^
    PageViewCountData.java:32: package org.jfree.chart.tooltips does not exist
    import org.jfree.chart.tooltips.CategoryToolTipGenerator;
    ^
    PageViewCountData.java:50: cannot resolve symbol
    symbol : class DatasetProducer
    location: class examples.PageViewCountData
    public class PageViewCountData implements DatasetProducer, CategoryToolTipGenerator, CategoryItemLinkGenerator, Serializable {
    ^
    PageViewCountData.java:50: cannot resolve symbol
    symbol : class CategoryToolTipGenerator
    location: class examples.PageViewCountData
    public class PageViewCountData implements DatasetProducer, CategoryToolTipGenerator, CategoryItemLinkGenerator, Serializable {
    ^
    PageViewCountData.java:50: cannot resolve symbol
    symbol : class CategoryItemLinkGenerator
    location: class examples.PageViewCountData
    public class PageViewCountData implements DatasetProducer, CategoryToolTipGenerator, CategoryItemLinkGenerator, Serializable {
    ^
    PageViewCountData.java:55: cannot resolve symbol
    symbol : class Logger
    location: class examples.PageViewCountData
    Logger log = Logger.getLogger(PageViewCountData.class);
    ^
    PageViewCountData.java:65: cannot resolve symbol
    symbol : class DatasetProduceException
    location: class examples.PageViewCountData
    public Object produceDataset(Map params) throws DatasetProduceException {
    ^

    They found no packages that i put on lib directory
    machine:/opt/tomcat4/jakarta-tomcat-4.1.24/webapps/myapp/WEB-INF/lib#

    Can anyone help me with this?

    Best Regards
    Fabio Ram