Finding path to my command line tools from Java
I have several command line tools that I'm wrapping with Java.Swing as GUI. I'm thinking I'll probably create a .jar (or wrap .jar into a .exe for Windows) and put my command line tools in the same folder as the Jar (or as a sub-folder). But how do I get the absolute path for my command line tools? Maybe I can detect the path of the Jar file and take a relative path. How do I get the path of the Jar file? I'm pretty new to Java, so I'm open to other suggestions as well.