Check what is your current directory when you compile.  If any of the
class refers to packages defined in any "outer" directory, then you
have to back out to prior to that directory for the compiler to find
the package.

norman
On Dec 13, 8:37 am, "Tharani Thirunavukkarasu" <tharani.
[email protected]> wrote:
> Hi,
>
> Can anyone plz help me out to solve this homework.
>
> In this home work,my problem is in second level of package.
>
> I have created both Food,FoodMain java files in Fruitpackage. its work fine
> with this level (package FruitPackage;)
>  when I add FoodPackage folder (package FoodPackage.FruitPackage;) food.java
> was compiled but Foodmain shows compile error that symbol Food is not found.
> I have created FoodPackage folder then inside FruitPackage then inside
> Food,FoodMain java files.(created the structure correctly).
>
> I have attached the screen shot of command prompt error..plz refer.
>
> Thanks,
> Tharani.
>
>  path.doc
> 57KViewDownload

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to