I have a project which calls an internal jar included in it´s classpath. At a certain moment my code makes this call:
Runtime.getRuntime().exec("java -jar ./jars/myJar.jar");
It works when running from Netbeans, but when I make "clean and build" and then execute the new jar ( outside of Netbeans ), doesn´t work the execution of myJar.jar (I mean: the main project works, but myJar execution doesn´t). I guess the path is modifyed, because the internal jar is included in the main jar.
Is the relative path changed? How could I reach my internal jar file path when executing the entire project made a jar file?