I am using IntelliJ IDEA and Java. I have my main program called SearchEngine , which should create the SearchEngine.jar executable. However, in my code there are dependencies on 3 additional .jar files. I added these dependencies and my program is working fine.
I want to create an executable .jar file that does not include 3 additional .jar files inside it, but instead it copies them to the lib folder. For this, I chose the following option:

When I do not change the settings on the settings tab of the Artifacts project, I get 4 .jar files, 1 of which is my executable file, and 3 - additional .jar files. Thus, everything works perfectly.

However, when I try to add 3 additional .jars to the lib folder, my executable does not work , although 3 additional .jars are copied to lib . How to do it?

source share