I've created a jar file and when I double-click it within the folder in which it is created, it works fine. I added my own manifest file so that I could specify the main class to be run and the class path
for the various jars I've needed to include. When I copy the jar file to the Desktop and run it there, it runs but the images are missing and I cant use the other jar files that I need. Has anyone encountered this problem before?
I had to include a number of jar files and I defined them on separate lines preceded by a space. The extra-jar-files folder is located in the same folder as the class files.
It works if the jar is run in that folder, but if I try to run it on another folder it cant find the jar files or the images needed by the GUI.
posted 9 years ago
It seems that the GUI is looking for the extra jar files in the path relative to the one that the jar is run in. Is there a way to create a jar file
so that it checks the folder extra-jar-files for those extra jars?