Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1501
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: Log4j help with NT Appender |
| Date | 2012-01-02 09:18 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <18006719.1700.1325524686288.JavaMail.geo-discussion-forums@prdv33> (permalink) |
| References | <0d4b8e35-b28d-4e28-81c5-bf437974930e@z12g2000yqm.googlegroups.com> <jdsi7m$33t$1@dont-email.me> |
On Monday, January 2, 2012 7:30:39 AM UTC-8, Jeff Higgins wrote: > On 01/02/2012 10:09 AM, Eddie Grogan wrote: >> I have relatively new to Java so I am hoping that someone can help me. >> I'm trying to use the NTEventLogAppender class to write to the windows >> event log. However, my program terminates as soon as it hits the >> declaration for the appender object. >> ... [snip] ... >> But when I run the program I get the following error: >> java HelloWorld You left off the classpath. > <http://docs.oracle.com/javase/7/docs/technotes/tools/windows/classpath.html> > >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/log4j/nt/NTEventLogAppender >> at HelloWorld.main(HelloWorld.java:10) >> Caused by: java.lang.ClassNotFoundException: >> org.apache.log4j.nt.NTEventLogAppender >> ... [snip] ... >> The NTEventLogAppender is included in the log4j jar file so I have >> really no idea why it won't work. The JAR does no good if it's not in the classpath. -- Lew
Back to comp.lang.java.help | Previous | Next — Previous in thread | Find similar
Log4j help with NT Appender Eddie Grogan <eddiegrogan@googlemail.com> - 2012-01-02 07:09 -0800
Re: Log4j help with NT Appender Jeff Higgins <jeff@invalid.invalid> - 2012-01-02 10:30 -0500
Re: Log4j help with NT Appender Jeff Higgins <jeff@invalid.invalid> - 2012-01-02 10:38 -0500
Re: Log4j help with NT Appender "John B. Matthews" <nospam@nospam.invalid> - 2012-01-02 11:47 -0500
Re: Log4j help with NT Appender Lew <lewbloch@gmail.com> - 2012-01-02 09:18 -0800
csiph-web