Idea 构建 jar包

Idea 构建 jar包

新建项目

1、在项目结构中选择 工件,点击 + 号

image-20250726211050020

2、选择 - 具有依赖项的模块:

image-20250726211112865

3、选择主类并确定:

image-20250726211136540

4、应用 - 确定即可:

image-20250726211200862

5、点击构建 - 构建工件

image-20250726211221528

6、即可成功构建

image-20250726211236463

7、运行示例:

image-20250726211245789

posted @ 2025-07-26 21:04  0xc00005  阅读(7)  评论(0)    收藏  举报