Daily Shaarli

All links of one day in a single page.

February 9, 2021

java - How to get the path of a running JAR file? - Stack Overflow
thumbnail

My code runs inside a JAR file, say foo.jar, and I need to know, in the code, in which folder the running foo.jar is. So, if foo.jar is in C:\FOO\, I want to get that path no matter what my current