Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java, How to add library files in netbeans?

Tags:

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?

like image 356
kiddo Avatar asked May 05 '11 06:05

kiddo


People also ask

How do I add a library in NetBeans 13?

Open NetBeans and right-click on the project name in the Projects tab. Select Properties. Select Libraries. Click the Add Jar/Folder button.

How do I add a library to a Java project?

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.

Where is Libraries option in NetBeans?

Right click on your project -> Properties. Libraries -> Libraries Folder -> Browse.


1 Answers

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.

like image 186
MockerTim Avatar answered Oct 01 '22 10:10

MockerTim