javainclude-pathnetbeans-6.9

Java, How to add library files in netbeans?


I am new to the Netbeans IDE and Java. I have a java project that shows lot of compilation errors:

can not import "org.apache.commons.logging.Log"

Can somebody please help me with these errors, How do I add library files in Netbeans IDE?


Solution

  • Quick solution in NetBeans 6.8.

    In the Projects window right-click on the name of the project that lacks library -> Properties -> The Project Properties window opens. In Categories tree select "Libraries" node -> On the right side of the Project Properties window press button "Add JAR/Folder" -> Select jars you need.

    You also can see my short Video How-To.