I have created four classes, named
Fruit (superclass), Apple, Orange, and Banana (all subclasses of Fruit, go figure). I put the line package com.workcomp.fruits ; in their code, and when compiling the class files go right to the d:\java\com\workcomp\fruits\ folder like expected.
However, when I try and compile the TestFruit class, which creates an array of random Fruit objects, it says that it can not resolve symbol when doing a new Orange(), new Apple(), or new Banana(). I have import com.workcomp.fruits.* ; in the code.
This looks like a path problem, of course. My classpath does have D:\Java in it, though.
Anyone have any ideas, and suggestions for someone who just recently started to do a bit with packages and .jar files?
Thanks!
Jason