I have successfully generated a my_program.jar file of my Java application using artifacts.
When I start the my_program.jar file it works.
Now I have written a User Guide and generated a user_guide.jar file of it (by another application).
I can successfully access this user_guide.jar file from within my application by a construction similar to:
ClassLoader cl = UserGuideGUIBuilder.class.getClassLoader();
URL url = HelpSet.findHelpSet(cl, "User_Guide_helpset.hs");
helpViewer = new JHelp(new HelpSet(cl, url));
JFrame frame = new JFrame();
as I have incorporated the user_guide.jar file into the dependencies.
When I start my program from Intellij IDEA all works fine and I have access to the User Guide.
Now my question: How can I incorporate the user_guide.jar into the my_program.jar?
Thank you for any hints.