Re: Need help with using org.apache.log4j pakages (LogManager)
- From: "Richard Reynolds" <richiereynolds@xxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 22:12:42 GMT
"spiderboy" <m.v.tran@xxxxxxxxxxxxx> wrote in message
news:1183144116.638032.244100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Greetings,what is your classpath set to when you run it? (not when you compile it)
I downloaded logging-log4j-1.2.14 package and edited the classpath
variable to point to this directory:
C:\logging-log4j-1.2.14\dist\lib\log4j-1.2.14.jar
And my java code has this line:
private static final Logger myLogger =
LogManager.getLogger(<my_class_name>.class.getName());
I am able to compile the code just fine, but when I try to run it, it
gives me this following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
log4j/LogManager at <my_class_name>.<clinit>(line number ...)
I looked at the build.xml file but not sure what needs to be modified.
Can anyone please give me some help on how to resolve this error. I
have researched this problem rather thoroughly but failed a find any
solution.
Thanks much.
.
- References:
- Need help with using org.apache.log4j pakages (LogManager)
- From: spiderboy
- Need help with using org.apache.log4j pakages (LogManager)
- Prev by Date: Exceptions no longer incur overhead?
- Next by Date: Re: New Java Site
- Previous by thread: Need help with using org.apache.log4j pakages (LogManager)
- Next by thread: Re: Need help with using org.apache.log4j pakages (LogManager)
- Index(es):
Relevant Pages
|