簡體   English   中英

如何在 netbeans 中解決這些缺失的庫

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

我正在嘗試在 Netbeans 中設置一個現有項目。 我在顯示的項目屬性窗口中顯示了一些“缺失”的庫。

此外,這對應於 project.properties 文件中的以下條目

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

以及 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>

activation.jar 引用 [file.reference.x] 很好,只有像 libs.x.classpath 這樣的引用似乎丟失了。

我將不勝感激任何有助於解決這些問題的見解。 謝謝

缺少圖書館

您似乎沒有從 Maven 中受益,因此:

  1. 工具»打開Ant 庫管理器對話框。

  2. 創建或更新有問題的庫。

右鍵單擊依賴項並在查詢中鍵入 jar 文件名。 它將列出可供您閱讀的罐子。 從列表中添加所需的 jar 庫。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM