executing java with another id
<p>I was wondering How to execute java Application with different userName and password.
For example:
Right now: When I do, </p>

<pre><code>System.getProperty("user.name"); 
</code></pre>

<p>I get <code>user1</code>.</p>

<p>But I want to program in such a way that it says <code>user2</code>.</p>

<p>Can somebody help me How to accomplish this with Java or bat files.
Any kind of help is appreciated.</p>
