I am trying to get a path to a Resource but I have had no luck.
This works (both in IDE and with the JAR) but this way I can\'t get a path to a file, only the file
It may be a little late but you may use my library KResourceLoader to get a resource from your jar:
File resource = getResource("file.txt")