0 Replies Latest reply on Jul 22, 2009 6:26 PM by 807581

    How do i solve these package related  Errors?

    807581
      How do i solve these errors. And yes, i look over the java tutorial: package numerous times. Is there a viral tutorial on how to create packages in Java?
      GiftShop.java:1: package org.inyang.ecommerce does not exist
      import org.inyang.ecommerce.*;
      ^
      GiftShop.java:7: cannot find symbol
      symbol  : class Storefront
      location: class GiftShop
                Storefront store = new Storefront();
                ^
      GiftShop.java:7: cannot find symbol
      symbol  : class Storefront
      location: class GiftShop
                Storefront store = new Storefront();
                                       ^
      GiftShop.java:16: cannot find symbol
      symbol  : class Item
      location: class GiftShop
                     Item show = (Item)store.getItem(i);
                     ^
      GiftShop.java:16: cannot find symbol
      symbol  : class Item
      location: class GiftShop
                     Item show = (Item)store.getItem(i);
                                  ^
      5 errors
      Here is my Environment Variable which are related to my package


      These are my User Variable which are related to my package

      Variable name: org.inyang.ecommerce.Item

      Variable value: C:\Users\JD\Desktop\org\inyang\ecommerce\Item.java;


      Variable name: org.inyang.ecommerce.Storfront

      Variable value: C:\Users\JD\Desktop\org\inyang\ecommerce\Storefront.java;


      Variable name: Path
      Variable value: C:\Users\JD\Desktop\org\inyang\ecommerce\Item.java;C:\Users\JD\Desktop\org\inyang\ecommerce\Storefront.java;C:\Program Files\Java\jdk1.6.0_14\bin;


      Here is my Classpath
      ;.\package;C:\Program Files\Java\jdk1.6.0_01\lib\tools.jar; C:\Program Files\Java\jre1.6.0_01 \lib\ext\QTJava.zip;C:\Users\JD\Desktop\org\inyang\ecommerce\Item.java;C:\Users\JD\Desktop\org\inyang\ecommerce\Storefront.java;


      I do not know if i place my package directories into too many variable.

      Thank U 4 your time and patiences!