logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harp, George" <GH...@GAINSystems.com>
Subject RE: package org.apache.log4j does not exist
Date Mon, 12 Sep 2005 16:11:28 GMT
np and gl

-----Original Message-----
From: Denise Mangano [mailto:Denisem@complusdata.com]
Sent: Monday, September 12, 2005 11:11 AM
To: Log4J Users List
Subject: RE: package org.apache.log4j does not exist


Well thank you for your help.  It worked when I designated the classpath
on the call to java just as you suggested.  So what I ended up doing was
just adding

CLASSPATH=$PATH
export CLASSPATH 

to my .bash_profile and that did the trick.

Thanks again!
 


-----Original Message-----
From: Harp, George [mailto:GHarp@GAINSystems.com] 
Sent: Monday, September 12, 2005 12:04 PM
To: Log4J Users List
Subject: RE: package org.apache.log4j does not exist

you can also set CLASSPATH variable or designate the classpath on the
call to java.
java -classpath ....:$LOG4J_HOME/dist/lib/log4j-1.2.12.jar <program>

Check on the spelling of the CLASSPATH variable if you go that route to
be sure I spelled it right.

-----Original Message-----
From: Denise Mangano [mailto:Denisem@complusdata.com]
Sent: Monday, September 12, 2005 10:57 AM
To: Log4J Users List
Subject: RE: package org.apache.log4j does not exist


See this is where I get confused.  I'm running Red Hat Linux, and the
only 'classpath' I am aware of is in the user's .bash_profile.  This is
what my tomcat's .bash_profile looks like:

# User specific environment and startup programs

LOG4J_HOME=/usr/local/tomcat/logs/logging-log4j-1.2.12
PATH=$PATH:$HOME/bin:/usr/local/java/bin:$LOG4J_HOME/dist/lib/log4j-1.2.
12.jar

export PATH LOG4J_HOME

Also, I didn't unpack the jar file - so I should just have to point to
the jar file itself, correct?

Thanks again.
Denise


-----Original Message-----
From: Harp, George [mailto:GHarp@GAINSystems.com]
Sent: Monday, September 12, 2005 11:51 AM
To: Log4J Users List
Subject: RE: package org.apache.log4j does not exist

log4j.jar in your classpath maybe? or the classes themselves not in the
classpath if you unpacked them?

-----Original Message-----
From: Denise Mangano [mailto:Denisem@complusdata.com]
Sent: Monday, September 12, 2005 10:50 AM
To: log4j-user@logging.apache.org
Subject: 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

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




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

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




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

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


Mime
View raw message