As far as I know there is nothing in the Java API which will give you the exact
name of the binary used to execute your
main class. You could use the System.getProperty("java.home") to get the home
directory for your Java installation but
that is about the extent of what is available.
Perhaps you are talking about the current working directory? This is accessible
with System.getProperty("user.dir").