thx for the help. im having problems with java and jsp. i think im not
settup up the enviornmental variables right in w2k advanced tab. im
using a wrox book, but the wrox book references a servlet in the
classpath environmental variable:
CLASSPATH
%CATALINA_HOME%\common\lib\servlet.jar
i dont see a servlet.jar file in that directory. i do see a
servlet-api.jar file. are they right?
i have a path set up for JAVA_HOME (c:\java) and path variable is set
up (%JAVA_HOME%\bin). i think those are working because i can compile
java files into class files. but i cant compile a sub class that
extends to a super class.
here is the code im using:
Book.java
+++++++++++++++++++++++++
package library;
public class Book
{
private String title;
public String getTitle()
{
return title;
}
public Book(String title)
{
this.title = title;
}
}
++++++++++++++++
ChildrenBook.java
package library;
public class ChildrenBook extends Book
{
private String age;
public String getAge()
{
return age;
}
public ChildrenBook(String title)
{
super(title);
}
}
++++++++++++++++++
my directory structure is this
c:\tomcat\webapps\hello\WEB-INF\classes\library
the files are placed in the library folder.
here is the error i get when i try to compile the ChildrenBook.java
file
library\ChildrenBook.java:2: cannot resolve symbol
symbol : class Book
location: class library.ChildrenBook
public class ChildrenBook extends Book
^
thx for the help.