英文:
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:
答案1
得分: 1
如他人所述,您的项目是一个Maven项目。要向Maven项目添加依赖项,您可以手动在pom.xml中添加条目,方法是右键单击项目,然后点击“打开POM”:
或者可以通过右键单击“Dependencies”文件夹,然后点击“Add Dependency”来自动添加依赖项。
如果选择前者,您可以在https://mvnrepository.com/上找到依赖项。
如果您不想使用Maven,我建议您改用ANT创建项目,这将为您提供所需的“Libraries”选项。如果您选择这种方式,在“项目属性”中将库添加到项目中(右键单击项目,然后选择“属性”)。确保将库添加到“Classpath”。
英文:
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"
or automatically by right clicking the "Dependencies" folder and clicking "Add Dependency".
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".
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论