I'm attempting to be a good newbie java programmer and going through the excellent 'Teach Yourself Java 2 in 21 Days' by Rogers Cadenhead & Laura Lemay. Looks great. Ran into a problem on day 6 when it came to making a package.
I'm running Mac OSX (latest version) using java version 1.3.1.
Step 2) Noticing that a CLASSPATH environment var doesn't exist under OSX, I discovered that it's equivalent is '/Library/Java/Extentions/' so I placed the package there.
javac complains that the object named Item (contained in the Item.class) can't be recognized. Heres the full report from my Terminal application.
>>Kevin-Muldoons-Computer:~/Java/storefront] kmuldoon% javac Storefront.java Storefront.java:14: cannot resolve symbol symbol : class Item location: class com.prefect.ecommerce.Storefront public Item getItem(int i) { ^ Storefront.java:9: cannot resolve symbol symbol : class Item location: class com.prefect.ecommerce.Storefront Item it = new Item(id, name, price, quant); ^ Storefront.java:9: cannot resolve symbol symbol : class Item location: class com.prefect.ecommerce.Storefront Item it = new Item(id, name, price, quant); ^ Storefront.java:15: cannot resolve symbol symbol : class Item location: class com.prefect.ecommerce.Storefront return (Item)catalog.get(i); ^ 4 errors