With this command:
javac -classpath \town-2.0\town.jar ormap/*.java ormap/generated/*.java

Here's the errors:
custom\ormap\generated\_Catalog.java:27: Class custom.ormap.generated.DB not found.

 protected DB db;
                ^
custom\ormap\generated\_Catalog.java:31: Class custom.ormap.generated.DB not found.

  super(DB.getDb().CatalogTable());
        ^
custom\ormap\generated\_Catalog.java:31: Undefined variable or class name: DB
  super(DB.getDb().CatalogTable());
        ^
custom\ormap\generated\_Catalog.java:42: Class custom.ormap.generated.DB not found.

  db = (DB)ds.getDb();
        ^
custom\ormap\generated\_Catalog.java:50: Method getId() not found in class
custom.ormap.generated._Catalog.
   result = getId().toString();
                 ^
custom\ormap\generated\_Catalog.java:121: Class custom.ormap.generated.DB not found
in int CatalogsSize().
   CatalogsSize = db.ProductTable().count("catalogid = " + id());
                                 ^
custom\ormap\generated\_Catalog.java:131: Class custom.ormap.generated.DB not found
in java.util.List Catalogs(java.lang.String).
  return db.ProductTable().select("catalogid = " + id() + " AND " + where, "id",
-1);
                        ^
custom\ormap\generated\_Catalog.java:141: Class custom.ormap.generated.DB not found
in java.util.List Catalogs().
   t = db.ProductTable().select("catalogid = " + id(), "id", -1);
                      ^
custom\ormap\generated\_Catalog.java:149: Class custom.ormap.generated.DB not found
in java.util.List Catalogs().
    t = db.ProductTable().select("catalogid = " + id(), "id", -1);
                       ^
custom\ormap\generated\_Catalog.java:186: Class custom.ormap.generated.Product not
found.
    ((Product)i.next()).invalidateCatalog();
      ^
custom\ormap\generated\_Catalog.java:203: Class custom.ormap.generated.Catalog not
found.
 public void replaceReferencesWith(Catalog replacement) throws TownException
             ^
custom\ormap\generated\_Catalog.java:208: Class custom.ormap.generated.Transaction
not found.
 public void replaceReferencesWith(Catalog replacement, Transaction taxn) throws
TownException
             ^
custom\ormap\generated\_Catalog.java:208: Class custom.ormap.generated.Catalog not
found.
 public void replaceReferencesWith(Catalog replacement, Transaction taxn) throws
TownException
             ^
custom\ormap\generated\_Catalog.java:211: Class custom.ormap.generated.Product not
found.
  Product r;
  ^
custom\ormap\generated\_Catalog.java:214: Class custom.ormap.generated.Product not
found.
   r = (Product)e.next();
        ^
custom\ormap\generated\_Catalog.java:232: Class custom.ormap.generated.Catalog not
found.
   return new Catalog();
              ^
custom\ormap\generated\_Catalog.java:238: Class custom.ormap.generated.Catalog not
found.
   return new Catalog(ds);
              ^
custom\ormap\generated\_Catalog.java:244: Class custom.ormap.generated.Catalog not
found.
   return new Catalog(ds,bool);
              ^
18 errors
exit code = 1, errno = 0


David Soergel wrote:

> >Hello,
> >
> >I've successfully run ormapmaker to create code! However, I can't figure
> >out the proper classpath or the proper order to compile the code in. I
> >named the package custom, so I have directories like
> >\town\src\custom\ormap, etc. Without going into detail, I get errors
> >relating to javac not knowing the definitions of other classes that were
> >generated by ormapmaker. Any suggestions on how to compile the code?
>
> It should work if you compile all the classes with a single javac command, e.g.
>
> javac ormap/*.java ormap/generated/*.java
>
> Also, make sure that town.jar is in your classpath.
>
> -ds
>
> ________________________________________________________________________
> David Soergel              .oooO  Oooo.        "Music and Living----"
> 123 Forest View            (   )  (   )     "The same thing," said Pooh.
> Woodside, CA  94062         \ (    ) /            [EMAIL PROTECTED]
> (650) 303-5324               \_)  (_/           http://www.lorax.org
> ________________________________________________________________________
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to