Howdy, I didn't even know they still made Visual J++ ;) While I haven't used log4j with Visual J++, I would say your question is more related to that product rather than log4j, for one reason: you're getting a NoClassDefFoundError, not a ClassNotFoundException. That indicates a different classpath for running than for compilation, and when you use an IDE the fault likely lies in your configuration of the IDE's project properties.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Harald Kaada [mailto:[EMAIL PROTECTED] >Sent: Tuesday, April 01, 2003 1:18 PM >To: [EMAIL PROTECTED] >Subject: Log4J in MS Visual J++ > > >Hello, > >Have any of you tried to use log4j with MS Visual J++ 6.0. > >My little test program compiles without problem, but fails with >java.lang.NoClassDefFoundError during execution. > >Here is the test program: > >public class Class1 >{ > public static void main (String[] args) > { > org.apache.log4j.Logger test = >org.apache.log4j.Logger.getLogger("mylogger"); // program dies here > } >} > >According to the "Available packages" list under Project -> "Project" >Properties -> Classpath, the packages should be available. > >Note again that this compiles successfully. The generated .class file runs >without error using java.exe (Sun JDK 1.4.1) > >I'm sorry that this is a bit Microsoft specific, but I assumed this was the >best place to ask. > >Regards, > >Harald Kaada > >Ny versjon av Yahoo! Messenger >Nye ikoner og bakgrunner, webkamera med superkvalitet og dobbelt så morsom This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]