Hi there,
I've bought HF's
Servlet &
JSP book and am going through the tutorial in chapter three. It shows a structure for the development environment where we should keep our code while developing.
At one point the book has a 'model' class and asks you to build a
test class for the model. So I've done this, and given it a package statement to put it in the same package as the model class. In my directory, both src files are in the appropriate directory in the development environment ie src\com\example\model.
I compiled the model class by:
and no problem, the class file appears in the classes part of the development environment.
The issue is when I try and compile my TestBeerExpert class it can't find (or access) the BeerExpert class file. I get a 'can't find symbol' message saying that it can't find the BeerExpert class.
In the command promt, I am starting in the beerV1 folder and entering:
I have also tried starting from the folder that the BeerExpert class is in and entering something like:
I don't think it is an access issue because I have put exactly the same package statement at the top of both - package com.example.model; so as they're in the same package they should be able to see each other. So I'm stuck and would appreciate it very much if someone could point out my mistake.
Thanks in advance.
Joe