This discussion is archived
2 Replies Latest reply: Jul 9, 2009 3:52 PM by 807581 RSS

package and/or classpath error

807581 Newbie
Currently Being Moderated
Hi, my name is Jeremiah i desperately want correct this error so i can finish up learning Java 6 in 21 day!
Thanks!

How do i solve this error?

GiftShop.java:7: cannot access Storefront
bad class file: C:\java\ecommerce\Storefront.java
file does not contain class Storefront
Please remove or make sure it appears in the correct subdirectory of the classpath.
          Storefront store = new Storefront();
          ^
1 error
  • 1. Re: package and/or classpath error
    807581 Newbie
    Currently Being Moderated
    It looks like Storefront is not in your classpath. You need to check out your import directory and path environement.

    Good luck,

    cp
  • 2. package and/or classpath error
    807581 Newbie
    Currently Being Moderated
    Hi, my name is Jeremiah i desperately want correct this error so i can finish up learning Java 6 in 21 day!
    Thanks!

    How do i solve this error?

    Here is my classpath:
    C:\Program Files\Java\jdk1.6.0_01\lib\tools.jar;C:\java\;C:\java\ecommerce\;C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip;


    GiftShop.java:7: cannot access Storefront
    bad class file: C:\java\ecommerce\Storefront.java
    file does not contain class Storefront
    Please remove or make sure it appears in the correct subdirectory of the classpath.
              Storefront store = new Storefront();
              ^
    1 error

    Edited by: 09PythonCJava on Jul 9, 2009 10:50 PM

    Edited by: 09PythonCJava on Jul 9, 2009 10:51 PM