简体   繁体   English

如何在 netbeans 中解决这些缺失的库

[英]How do I resolve these missing libraries within netbeans

I am trying to setup an existing project within Netbeans.我正在尝试在 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此外,这对应于 project.properties 文件中的以下条目

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以及 project.xml 文件中的以下内容

<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. activation.jar 引用 [file.reference.x] 很好,只有像 libs.x.classpath 这样的引用似乎丢失了。

I would be grateful for any insight to help with these issues.我将不胜感激任何有助于解决这些问题的见解。 Thanks谢谢

缺少图书馆

It seems like you are not benefiting from Maven, therefore:您似乎没有从 Maven 中受益,因此:

  1. Tools » Libraries to open Ant Library Manager dialog.工具»打开Ant 库管理器对话框。

  2. Create or update the libraries in question.创建或更新有问题的库。

Right click on dependencies and type the jar file name in the query.右键单击依赖项并在查询中键入 jar 文件名。 It will list out the jars available for your perusal.它将列出可供您阅读的罐子。 Add the required jar library from the list.从列表中添加所需的 jar 库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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