This means that this library isn't on your classpath when your compiling your 
application. 
When you are compiling, the compiler isn't automagically including the WEB-INF/lib 
dir, because he doesn't know you are developping a webapp.

If you are using an ide try setting in your project options, the classpath/lib setting 
to this lib.

if your compiling commandline don't forget to specify the -classpath argument on the 
javac command or set your classpath environment variable.


Greets
Jimmy

-----Original Message-----
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: dinsdag 14 september 2004 15:14
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: BeanUtils Class Cannot Be Found!


The error occurred at the compilation time:

SendMessage.java:17: 
package org.apache.commons.beanutils does not exist.

The java code on line 17 is:
import org.apache.commons.beanutils.BeanUtils;

and the commons-beanutils.jar is in the
c:\jakarta-tomcat-5.0.27\webapps\AppName\WEB-INF\lib
directory.



--- Andrew Hill <[EMAIL PROTECTED]>
wrote:

> The error is run-time or compile-time?
> 
> 
> Caroline Jen wrote:
> 
> > I have the commons-beanutils.jar file in my
> > AppName\WEB-INF\lib directory.  And I have this
> > statement:
> > 
> > import org.apache.commons.beanutils.BeanUtils;
> > 
> > in my .java class.
> > 
> > Why do I get the error message that the BeanUtils
> > class cannot be found?
> > 
> > 
> >             
> > _______________________________
> > Do you Yahoo!?
> > Declare Yourself - Register online to vote today!
> > http://vote.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



STRICTLY PERSONAL AND CONFIDENTIAL
This message may contain confidential and proprietary material for the sole use of the 
intended recipient. Any review or distribution by others is strictly prohibited. If 
you are not the intended recipient please contact the sender and delete all copies.

Ce Message est uniquement destin� aux destinataires indiqu�s et peut contenir des 
informations confidentielles. Si vous n'�tes pas le destinataire, vous ne devez pas 
r�v�ler le contenu de ce message ou en prendre copie. Si vous avez re�u ce message par 
erreur, veuillez en informer l'exp�diteur, ou La Poste imm�diatement, avant de le 
supprimer.

Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke 
informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht 
niet bekendmaken noch kopi�ren. Als u dit bericht per vergissing heeft ontvangen, 
gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het 
bericht vervolgens te verwijderen.

Reply via email to