I've made a runnable jar that has another jar within it as a resource. During the execution of the program depending on what the user does, I need to call the resource as another java program eg. java -jar m.jar. So what I'm asking is how do I get the path of the resource jar in the jar file so i can run it like this Runtime.getRuntime().exec(...); Or is there any other way to do this? I've used getClass.getResource().getPath() but I just keep getting the jar name, not the absolute path. I forgot how to get the path but I do remember that the path has '!' after the jar eg, /module.jar!/module2.jar or something like that. Any help would be appreciated.