简体   繁体   English

在哪里保存jar的项目?

[英]Where to save jar's for project?

I'm knew to the stackoverflow community so forgive me if I'm doing this wrong. 我知道stackoverflow社区,所以如果我做错了,请原谅我。

I have a java project that I'm building [using itellij], where I am using an API with a jar I downloaded. 我有一个正在构建的Java项目(使用itellij),正在使用我下载的jar的API。 What is the best way to add the jar to the project so a user (or another programmer) can just open it and not have to download the jar? 将jar添加到项目中以便用户(或其他程序员)可以直接打开它而不必下载jar的最佳方法是什么? Or if I was to deploy the program, how would I include the jar so it could be run with the necessary jars? 或者,如果我要部署程序,我将如何包含jar,以便可以在必要的jar中运行它? Currently I have made a separate folder named jars and load it from there. 目前,我已经制作了一个名为jars的单独文件夹,并从那里加载它。

You can use maven for solve these problems. 您可以使用maven解决这些问题。

See this tutorial, if you are interested in maven: http://www.mkyong.com/maven/how-to-create-a-java-project-with-maven/ 如果您对Maven感兴趣,请参阅本教程: http : //www.mkyong.com/maven/how-to-create-a-java-project-with-maven/

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

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