简体   繁体   English

引用罐子

[英]Referencing Jars

I am learning Java and using IntelliJ IDEA. 我正在学习Java并使用IntelliJ IDEA。 How can I add a reference to an external jar in my project (like referencing a dll in Visual Studio)? 如何在项目中添加对外部jar的引用(如在Visual Studio中引用dll)?

Thanks 谢谢

Please refer to IDEA documentation, start reading from the following topics: 请参考IDEA文档,从以下主题开始阅读:

Click on the "Project Structure" button to the right of the wrench (or Ctrl-Alt-Shift-S). 单击扳手右侧的“项目结构”按钮(或Ctrl-Alt-Shift-S)。

Choose "Libraries" on the left. 选择左侧的“库”。

Click the plus sign to add a JAR or directory as a library. 单击加号以将JAR或目录添加为库。

Click on "Artifacts" on the left to make sure the library ends up in the right place for your deployment. 单击左侧的“工件”,以确保该库最终位于部署的正确位置。

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

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