Hi,

I found the solution to the problem. While configuring
the classpath, I specified the directory where the jar
file is available and I did not specify the exact jar
file in the directory. Thats where the problem was.
Now after including the name of the jar file in the
directory, it works fine.

Thanks a lot for all your efforts

--- Jacob Kjome <[EMAIL PROTECTED]> wrote:

> What does line 20 do?  Does it configure Log4j? 
> What JDK are you using?  What,
> exactly, does your classpath look like?
> 
> Jake
> 
> Quoting venkatlakshmi <[EMAIL PROTECTED]>:
> 
> > Yes, I have included it in the classpath also.
> >
> > Still it gives me the error.
> >
> > --- Bender Heri <[EMAIL PROTECTED]> wrote:
> >
> > > It's not enough to just put it in the lib dir,
> you
> > > must include it in your classpath.
> > > Heri
> > >
> > > > -----Original Message-----
> > > > From: venkatlakshmi
> > > [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, June 29, 2006 1:55 PM
> > > > To: log4j-user@logging.apache.org
> > > > Subject: NoClassDefFound Error for
> > > org/apache/log4j/Layout
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > I am using jakarta-log4j-1.2.8 in my java
> program
> > > to
> > > > log errors. When I compile the program it runs
> > > fine.
> > > > But when I execute it, it throws the following
> > > error
> > > >
> > > > C:\VLakshmi\JCI\Equipment
> > > > Interface\Code\WEB-INF\classes>java
> > > JCI.XMLInterface
> > > > Exception in thread "main"
> > > > java.lang.NoClassDefFoundError:
> > > org/apache/log4j/Layo
> > > > ut
> > > >    at
> > > JCI.XMLInterface.<clinit>(XMLInterface.java:20)
> > > >
> > > > It says that the class "Layout" is not found.
> But
> > > i
> > > > have included the log4j-1.2.8.jar in \lib.
> Kindly
> > > help
> > > > me to resolve this issue.
> > > >
> > > >
> >
> >
> > With regards,
> >
> > Venkatlakshmi
> >
> >
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




With regards,

Venkatlakshmi



                
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to