

The binaries don't include the source code, so you won't be able to drill down and see what is happening when you debug. Save the project, and re-run, and the errors should be gone. In netbeans right click your project, click properties, click libraries, click "add jar/folder" and import those jars. if you are compiling for an old version, you'll need to match these up, or else you risk the code not compiling right due to changes due to upgrading.ĭownload that zip. the middle 1.1.3 means that is the version. commons-logging means that this one should contain the LogFactory class you desire. You're going to want to download the commons-logging-1.1.3-bin.zip or something to that effect. If your project was compiled under ancient versions of commons-logging, then use those same ancient ones because if you use the newer ones, the code may fail because the newer versions are different. There you will find the most up-to-date ones. Excellent choice, fire up the google and search for apache commons-logging. You'll want to go the middle of the road and get commons-logging. Like for example just get the logging bit of apache commons.

You have a choice, either you can import EVERYTHING in apache commons, or you could import JUST the LogFactory class, or you could do something in between. The words 'org/apache/commons' lets you know that this is the codebase that provides the tools you need.

To know what to do next, you have to look at the error message closely. So what that means is your code did this: MyFoobarClass foobar = new MyFoobarClass() and the compiler is confused because nowhere is defined this MyFoobarClass. NoClassDeffFoundError means somewhere under the hood in the code you used, a method called another method which invoked a class that cannot be found.
APACHE NETBEANS IDE DOWNLOAD HOW TO
How to import a commons-library into netbeans.Įvaluate the error message in NetBeans: : org/apache/commons/logging/LogFactory
