在哪里找到“Libraries”文件夹(Netbeans JAR)

huangapple go评论78阅读模式
英文:

Where to find the "Libraries" folder (Netbeans JAR)

问题

我想添加一个外部库,但找不到放置它的文件夹。

在我看过的YouTube视频中,他们总是将库的JAR文件放到一个名为“Libraries”的文件夹中,但我找不到那个文件夹:

英文:

I want to add an external library but I cannot find the folder to put it in.

In the youtube videos I've seen, they always put the library JAR to a folder called "Libraries" but I cannot find that:

在哪里找到“Libraries”文件夹(Netbeans JAR)

答案1

得分: 1

如他人所述,您的项目是一个Maven项目。要向Maven项目添加依赖项,您可以手动在pom.xml中添加条目,方法是右键单击项目,然后点击“打开POM”:

在哪里找到“Libraries”文件夹(Netbeans JAR)

或者可以通过右键单击“Dependencies”文件夹,然后点击“Add Dependency”来自动添加依赖项。
在哪里找到“Libraries”文件夹(Netbeans JAR)

如果选择前者,您可以在https://mvnrepository.com/上找到依赖项。

如果您不想使用Maven,我建议您改用ANT创建项目,这将为您提供所需的“Libraries”选项。如果您选择这种方式,在“项目属性”中将库添加到项目中(右键单击项目,然后选择“属性”)。确保将库添加到“Classpath”。

在哪里找到“Libraries”文件夹(Netbeans JAR)

在哪里找到“Libraries”文件夹(Netbeans JAR)

英文:

As mentioned by others, your project is a Maven project. In order to add dependencies to a maven project you can either add entries to your pom.xml manually by right clicking your project and clicking "Open POM"

在哪里找到“Libraries”文件夹(Netbeans JAR)

or automatically by right clicking the "Dependencies" folder and clicking "Add Dependency".
在哪里找到“Libraries”文件夹(Netbeans JAR)

If using the former, you can find dependencies at https://mvnrepository.com/

If you don't want to use Maven, I would suggest creating your project with ANT instead, which will give you the expected "Libraries" option you are looking for. If you go this way, you add libraries to your project in the "Project properties" (right click project, then "properties"). Make sure you add your libraries to the "Classpath".

在哪里找到“Libraries”文件夹(Netbeans JAR)

在哪里找到“Libraries”文件夹(Netbeans JAR)

huangapple
  • 本文由 发表于 2020年10月17日 00:22:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/64392938.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定