Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经安装了 netbeans 11.2。现在我想开始一个新项目,我需要添加一些库。在以前的版本中。在项目属性中有一个包含库的文件夹。现在我看不到在哪里可以添加它们。
有什么帮助吗?
您正在使用项目设置中没有“库”页面的 Maven 项目。
如果要添加 Maven 依赖项,可以右键单击项目的“依赖项”节点并选择“添加依赖项”:
然后你可以在 Maven 中心搜索你想要的库。
如果您不想创建 Maven 项目,但想使用基于 Ant 的项目(NetBeans 中的“本机”项目类型),则必须删除您的 Maven 项目并创建一个新项目,然后选择“Java with Ant "作为项目的类别:
完成此操作后,您将在项目属性中返回“库”表。