Hi Marc..
Thanks a lot for your reply.
But, I still have problem complilng above code. I tried both of your suggestions,
>javac Food/Fruit.java
>javac -cp .. Fruit.java
Now I am getting error message like
cannot read food/Fruit.java and
cannot read Fruit.java PLease see my direcrory structure below. I have 3 .java files in the Directory called Food, which is in MyJavaPrograms Directory. ie,
I also tried using absolute class path, in my case C:\Maya\JavaLearning\MyJavaPrograms\Food even this did not work. It gave me the same error. Can you please help me with this..
Thanks in advance.