Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 68046 invoked from network); 12 Sep 2005 16:11:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2005 16:11:36 -0000 Received: (qmail 5334 invoked by uid 500); 12 Sep 2005 16:11:32 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 5311 invoked by uid 500); 12 Sep 2005 16:11:32 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 5298 invoked by uid 99); 12 Sep 2005 16:11:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2005 09:11:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [67.155.8.66] (HELO gainsmail.gainsystems.net) (67.155.8.66) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2005 09:11:41 -0700 Content-class: urn:content-classes:message Subject: RE: package org.apache.log4j does not exist Date: Mon, 12 Sep 2005 11:11:28 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: package org.apache.log4j does not exist Thread-Index: AcW3tJMyrCuy249yRtep5+zSRsrb2gAAAqhQ X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 From: "Harp, George" To: "Log4J Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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=3D$PATH export CLASSPATH=20 to my .bash_profile and that did the trick. Thanks again! =20 -----Original Message----- From: Harp, George [mailto:GHarp@GAINSystems.com]=20 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 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=3D/usr/local/tomcat/logs/logging-log4j-1.2.12 PATH=3D$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: =20 1) Downloaded files from logging.apache.org and extracted them to a directory of my choice. =20 2) I defined $LOG4J_HOME and added $LOG4J_HOME/dist/lib/log4j-1.2.12.jar to my $PATH in .bash_profile. =20 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? =20 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