This is a problem I've encountered with javac. The error message is
misleading because it doesn't tell you the correct name of the class that
can't be loaded.
What's likely happening is that your Product class is importing a class
that's not in your classpath, or one those imported classes is importing a
class that's not in your classpath, etc.
So you need to verify that all of the imported classes used by Product are
in you classpath.
The '-verbose' option to the javac compiler can also help you find which
class is not found.
David
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sachin S. Khanna
> Sent: Friday, November 05, 1999 5:31 AM
> To: [EMAIL PROTECTED]
> Subject: Problem
>
>
> Hi Guys,
> Well i'm facing a funny problem.
> When i import a custom class with the following code:
> <%@ page import = "Product" %>
> everything is alright.
> This would sugges that the jspengine is able to find the above
> Product.class, but amazingly when i try to instantiate an object of this
> class, i get ClassDefNotFound Error.
> Can you guys tell me why such a thing is happening.
> Have a nice day.
> With regards,
> Sachin S. Khanna.
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html