error in java - Command-Line Tutorial

From: Francesca (francesca.fanfoni..tudenti.unipr.it)
Date: Wed Feb 23 2005 - 12:01:16 EST

  • Next message: McDaniel, Joe R.: "RE: error in java - Command-Line Tutorial"

    HI!
    I have run the first example of tutorial "Command-Line Tutorial" but there are
    these errors:

    Can you help me?
    thank you very much!!!!

    Z:\cayenne-1.1\src\tutorials\cayenne-cmd-app>J:\bin\javac java\test\*.java
    java\test\_Artist.java:5: package org.objectstyle.cayenne does not exist
    import org.objectstyle.cayenne.CayenneDataObject;
                                   ^
    java\test\_Artist.java:12: cannot resolve symbol
    symbol : class CayenneDataObject
    location: class test._Artist
    public class _Artist extends CayenneDataObject {
                                 ^
    java\test\_Painting.java:3: package org.objectstyle.cayenne does not exist
    import org.objectstyle.cayenne.CayenneDataObject;
                                   ^
    java\test\_Painting.java:10: cannot resolve symbol
    symbol : class CayenneDataObject
    location: class test._Painting
    public class _Painting extends CayenneDataObject {
                                   ^
    java\test\_Gallery.java:5: package org.objectstyle.cayenne does not exist
    import org.objectstyle.cayenne.CayenneDataObject;
                                   ^
    java\test\_Gallery.java:12: cannot resolve symbol
    symbol : class CayenneDataObject
    location: class test._Gallery
    public class _Gallery extends CayenneDataObject {
                                  ^
    java\test\Main.java:5: package org.apache.log4j does not exist
    import org.apache.log4j.Level;
                            ^
    java\test\Main.java:6: package org.objectstyle.cayenne.access does not exist
    import org.objectstyle.cayenne.access.DataContext;
                                          ^
    java\test\Main.java:7: package org.objectstyle.cayenne.conf does not exist
    import org.objectstyle.cayenne.conf.Configuration;
                                        ^
    java\test\Main.java:8: package org.objectstyle.cayenne.exp does not exist
    import org.objectstyle.cayenne.exp.Expression;
                                       ^
    java\test\Main.java:9: package org.objectstyle.cayenne.exp does not exist
    import org.objectstyle.cayenne.exp.ExpressionFactory;
                                       ^
    java\test\Main.java:10: package org.objectstyle.cayenne.query does not exist
    import org.objectstyle.cayenne.query.SelectQuery;
                                         ^
    java\test\Main.java:14: cannot resolve symbol
    symbol : class DataContext
    location: class test.Main
        private DataContext ctxt;
                ^
    java\test\Main.java:45: cannot resolve symbol
    symbol : class DataContext
    location: class test.Main
        private DataContext createContext() {
                ^
    java\test\_Artist.java:15: cannot resolve symbol
    symbol : method writeProperty (java.lang.String,java.lang.String)
    location: class test._Artist
            writeProperty("artistName", artistName);
            ^
    java\test\_Artist.java:18: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Artist
            return (String)readProperty("artistName");
                           ^
    java\test\_Artist.java:23: cannot resolve symbol
    symbol : method writeProperty (java.lang.String,java.sql.Date)
    location: class test._Artist
            writeProperty("dateOfBirth", dateOfBirth);
            ^
    java\test\_Artist.java:26: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Artist
            return (java.sql.Date)readProperty("dateOfBirth");
                                  ^
    java\test\_Artist.java:31: cannot resolve symbol
    symbol : method addToManyTarget (java.lang.String,test.Painting,boolean)
    location: class test._Artist
            addToManyTarget("paintingArray", obj, true);
            ^
    java\test\_Artist.java:34: cannot resolve symbol
    symbol : method removeToManyTarget (java.lang.String,test.Painting,boolean)
    location: class test._Artist
            removeToManyTarget("paintingArray", obj, true);
            ^
    java\test\_Artist.java:37: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Artist
            return (List)readProperty("paintingArray");
                         ^
    java\test\_Painting.java:13: cannot resolve symbol
    symbol : method writeProperty (java.lang.String,java.math.BigDecimal)
    location: class test._Painting
            writeProperty("estimatedPrice", estimatedPrice);
            ^
    java\test\_Painting.java:16: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Painting
            return (java.math.BigDecimal)readProperty("estimatedPrice");
                                         ^
    java\test\_Painting.java:21: cannot resolve symbol
    symbol : method writeProperty (java.lang.String,java.lang.String)
    location: class test._Painting
            writeProperty("paintingTitle", paintingTitle);
            ^
    java\test\_Painting.java:24: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Painting
            return (String)readProperty("paintingTitle");
                           ^
    java\test\_Painting.java:29: cannot resolve symbol
    symbol : method setToOneTarget (java.lang.String,test.Artist,boolean)
    location: class test._Painting
            setToOneTarget("toArtist", toArtist, true);
            ^
    java\test\_Painting.java:33: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Painting
            return (Artist)readProperty("toArtist");
                           ^
    java\test\_Painting.java:38: cannot resolve symbol
    symbol : method setToOneTarget (java.lang.String,test.Gallery,boolean)
    location: class test._Painting
            setToOneTarget("toGallery", toGallery, true);
            ^
    java\test\_Painting.java:42: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Painting
            return (Gallery)readProperty("toGallery");
                            ^
    java\test\_Gallery.java:15: cannot resolve symbol
    symbol : method writeProperty (java.lang.String,java.lang.String)
    location: class test._Gallery
            writeProperty("galleryName", galleryName);
            ^
    java\test\_Gallery.java:18: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Gallery
            return (String)readProperty("galleryName");
                           ^
    java\test\_Gallery.java:23: cannot resolve symbol
    symbol : method addToManyTarget (java.lang.String,test.Painting,boolean)
    location: class test._Gallery
            addToManyTarget("paintingArray", obj, true);
            ^
    java\test\_Gallery.java:26: cannot resolve symbol
    symbol : method removeToManyTarget (java.lang.String,test.Painting,boolean)
    location: class test._Gallery
            removeToManyTarget("paintingArray", obj, true);
            ^
    java\test\_Gallery.java:29: cannot resolve symbol
    symbol : method readProperty (java.lang.String)
    location: class test._Gallery
            return (List)readProperty("paintingArray");
                         ^
    java\test\Main.java:46: cannot resolve symbol
    symbol : variable Configuration
    location: class test.Main
            Configuration.bootstrapSharedConfiguration(this.getClass());
            ^
    java\test\Main.java:47: cannot resolve symbol
    symbol : variable Configuration
    location: class test.Main
            return Configuration.getSharedConfiguration().getDomain().createDataCont
    ext();
                   ^
    java\test\Main.java:57: cannot resolve symbol
    symbol : class Expression
    location: class test.Main
            Expression qual = ExpressionFactory.likeIgnoreCaseExp("galleryName", lik
    ePattern);
            ^
    java\test\Main.java:57: cannot resolve symbol
    symbol : variable ExpressionFactory
    location: class test.Main
            Expression qual = ExpressionFactory.likeIgnoreCaseExp("galleryName", lik
    ePattern);
                              ^
    java\test\Main.java:59: cannot resolve symbol
    symbol : class SelectQuery
    location: class test.Main
            SelectQuery query = new SelectQuery(Gallery.class, qual);
            ^
    java\test\Main.java:59: cannot resolve symbol
    symbol : class SelectQuery
    location: class test.Main
            SelectQuery query = new SelectQuery(Gallery.class, qual);
                                    ^
    java\test\Main.java:62: cannot resolve symbol
    symbol : variable Level
    location: class test.Main
            query.setLoggingLevel(Level.WARN);
                                  ^
    java\test\Main.java:98: cannot resolve symbol
    symbol : variable Level
    location: class test.Main
            ctxt.commitChanges(Level.WARN);
                               ^
    42 errors



    This archive was generated by hypermail 2.0.0 : Wed Feb 23 2005 - 12:01:20 EST