The reason you cannot get the URL in the directory inside your jar file is because you forgot to enable the "Add entries to directory" option when creating the jar file.
If you used eclipse to create the jar file, just enable the "Add entries to directory" option.
If you use the jdk jar command, I think the option is enabled by default.
Do not use ordinary zip creators such as WinZip, 7zip or WinRar, as I do not believe that you have this option.
source share