In both classes u have to declare the package to which that class belong. That may solve u r problem.
happy coding
----- Original Message -----
Sent: Monday, September 24, 2001 4:27 PM
Subject: possible idiot question

i am trying to get my head around class inheritance and have followed some tuts, however....
 
 
having created a simple class, and then creating a subclass, extending the first, i keep getting
 
    Class Book not found in type declaration or import...
 
 
when i try to compile it, they are both sitting in the same package.... pls help!! this is giving me a headache.
 
 
i am currently running Sun's Forte IDE with JDK1.3.1 and serving it up with Tomcat 4.0
 
forte suggests that i have an invalid package declaration but i can find no documentation on how to rectify this, and am baffled as i have followed the tuts to the letter and nothing seems out of kilter.
 
 
any help will be gratefully recieved...
 
cheers..
 
 
ewan taylor
========================= To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=P http://www.jguru.com/jguru/faq/faqpage.jsp?name=rvlets

Reply via email to