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?
Open NetBeans and right-click on the project name in the Projects tab. Select Properties. Select Libraries. Click the Add Jar/Folder button.
Right-click the Java project to which you want to add a library, and select Properties from the menu. Select Java Build Path, and click the Libraries tab. Click the Add Library button, and choose the appropriate Java EE Library. Click Next to view the library contents, and click Finish.
Right click on your project -> Properties. Libraries -> Libraries Folder -> Browse.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With