The problem is with your classpath that you include with the command to compile ChildrenBook.java. From your library folder, execute the javac command like this "javac -classpath C:\Apache\Tomcat~1\webapps\begjsp~1\WEB-INF\classes\com\wrox ChildrenBook.java". By using everything between the quotes, you're telling the compiler that the package 'library' (which contains the class Book.class) to start in the 'wrox' folder, then from there look for the 'library' package as it says to in the ChildrenBook class. By including the classpath parm, you're giving it the beginning location on where to find Book.class. Without specifying the starting point, it won't know to begin looking for 'library'....good luck!
|