You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Denise Mangano <De...@complusdata.com> on 2005/09/12 17:49:46 UTC

package org.apache.log4j does not exist

I am new to Log4j and I am running into a problem getting it to work on
my server.  I have done the following:
 
1) Downloaded files from logging.apache.org and extracted them to a
directory of my choice.
 
2) I defined $LOG4J_HOME and added $LOG4J_HOME/dist/lib/log4j-1.2.12.jar
to my $PATH in .bash_profile.
 
3) I used the simple Hello.java program from the INSTALL file.  I try to
compile but it complains that "package org.apache.log4j does not exist".

What am I missing?
 
Thanks in advance.
Denise



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: package org.apache.log4j does not exist

Posted by James Stauffer <st...@gmail.com>.
2) I would think that you would want to add it to your classpath, not your path.

On 9/12/05, Denise Mangano <De...@complusdata.com> wrote:
> I am new to Log4j and I am running into a problem getting it to work on
> my server.  I have done the following:
> 
> 1) Downloaded files from logging.apache.org and extracted them to a
> directory of my choice.
> 
> 2) I defined $LOG4J_HOME and added $LOG4J_HOME/dist/lib/log4j-1.2.12.jar
> to my $PATH in .bash_profile.
> 
> 3) I used the simple Hello.java program from the INSTALL file.  I try to
> compile but it complains that "package org.apache.log4j does not exist".
> 
> What am I missing?
> 
> Thanks in advance.
> Denise
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org