Hi everyone

I am bit confused about the homework for Lab-1003.

I've created the Food class  ....

package foodpackage.fruitpackage;

public class Food {
.
.

and I have created the FoodMain class ....

package foodpackage.fruitpackage;

public class FoodMain {
.
.

The root directory for my project is: c:\myjavaprograms and I have
created the subdirectory c:\myjavaprograms\foodpackage\fruitpackage
and there I have placed the Food.java FoodMain.java files and the
compiled .class files

And finally I have set my classpath to c:\myjavaprograms.

I can compile my classes but the only way I can run my program is to
give full package path..
"java foodpackage.fruitpackage.FoodMain"

I thought that if the classpath was correct I would be able to run the
program by just type "java FoodMain"  from c:\myjavaprograms
\foodpackage\fruitpackage or at least "java foopackage\fruitpackage
\FoodMain" from c:\myjavaprograms

Am I missing somthing here??

- Halli

--~--~---------~--~----~------------~-------~--~----~
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