Hello Friends, I have a problem to create file FoodMain.class I used all suitable proposed in lesson commands. For example using following one: c:\foodpackage\fruitpackage>javac Food.java FoodMain.java system created Food.class in fruitpackage but regarding FoodMain I receive communicate: FoodMain.java: cannot find symbol: class Food location: class fruitpackage.FoodMain Food appleFood = new Food(); //this is one of the objects.
The tops of classes in java files are following: package fruitpackage; public class FoodMain package foodpackage.fruitpackage; public class Food The cod of classes is OK because project works in IDE. I enclose print-screen. I am a beginner in Java. Thank you very much for your help! Best regards, Rafał ---------------------------------------------------- ATRAKCYJNE NIERUCHOMOŚCI W ZAKOPANEM !!! Apartamenty, Domy, Działki, Pensjonaty, Hotele, Lokale użytkowe... Kliknij: http://klik.wp.pl/?adr=www.nieruchomosciwzakopanem.pl&sid=652 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
lab1003.doc
Description: MS-Word document
