简体   繁体   中英

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

缺少图书馆

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM