how to get the real path of java application at runtime?
<p>i am crated an Java application,where i am using log4j,i given the absolute path of configuration log4j file and also i given an absolute path of generated log file(where this log file are generated). my problem is how i am get the absolute path of Java application at run time.In respect of web application we using</p>

<pre><code>   String prefix =  getServletContext().getRealPath("/");
</code></pre>

<p>but in context of Java application.what we have used?</p>

<p>Thanks</p>
