简体   繁体   中英

Jar I am I building is not finding jar dependencies

I am using intellij to create a jar file. I have 5 jar files in the project as dependencies. I have added these 5 jar files in the artifact setting as follows.

在此处输入图片说明

I am able to run the project fine in intellij but when I try to run the jar I created it says it cannot find the class of one of the jars, which does not make sense to me. I have even tried making the jar with editing the classpath in the artifacts settings. Any help would be appreciative.

Thanks.

jar的路径仅适用于您的IDE,因为IDE已配置了要测试的路径环境,但是一旦您在没有IDE的情况下运行代码,路径将遵循默认设置以及系统环境变量。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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