pi.
pi.

Reputation: 1471

How do I resolve these missing libraries within netbeans

I am trying to setup an existing project within Netbeans. I have some 'missing' libraries displayed in the project properties window shown.

Also, this corresponds to the following entry in the project.properties file

javac.classpath=\
    ${libs.hibernate-support.classpath}:\
    ${libs.Struts1.2.classpath}:\
    ${libs.ejb3-persistence.classpath}:\
    ${file.reference.activation.jar}:\

and the following in the project.xml file

<web-module-libraries>
                <library dirs="200">
                    <file>${libs.hibernate-support.classpath}</file>
                    <path-in-war>WEB-INF/lib</path-in-war>
                </library>
                <library dirs="200">
                    <file>${libs.Struts1.2.classpath}</file>
                    <path-in-war>WEB-INF/lib</path-in-war>
                </library>
                <library dirs="200">
                    <file>${libs.ejb3-persistence.classpath}</file>
                    <path-in-war>WEB-INF/lib</path-in-war>
                </library>
                <library dirs="200">
                    <file>${file.reference.activation.jar}</file>
                    <path-in-war>WEB-INF/lib</path-in-war>
                </library>

the activation.jar reference [file.reference.x] is fine, only the references like libs.x.classpath seem to be missing.

I would be grateful for any insight to help with these issues. Thanks

missing libraries

Upvotes: 4

Views: 12965

Answers (2)

user13350736
user13350736

Reputation: 1

Right click on dependencies and type the jar file name in the query. It will list out the jars available for your perusal. Add the required jar library from the list.

Upvotes: 0

高科技黑手
高科技黑手

Reputation: 1262

It seems like you are not benefiting from Maven, therefore:

  1. Tools » Libraries to open Ant Library Manager dialog.

  2. Create or update the libraries in question.

Upvotes: 4

Related Questions