Is it possible to get the name of the file that is running. Like, for example, If I run a Jar file, and inside I want to add code functionality that can determine the file name, so that if this jar is renamed, the code should be able to detect it.
Is it possible to do this without scanning files in the current directory?
source share