How to build standalone jar files without including dependencies
<p>I am building a solution from the back of my head and also as a java newbie.</p>

<p>I am seeking advice from experts here for my following conundrum:</p>

<p>a) In selenium IDE, I have a project which I shall call it <code>Login</code>. Under this<br>
   project's default package, I have three java files, namely     <code>Chrome.java</code>,<code>Firefox.java</code> and <code>Credentials.java</code>.</p>

<p>b) <code>Credentials.java</code> is the global file for both <code>Chrome.java</code> and <code>Firefox.java</code>. Any changes to <code>Credentials.java</code> can be made without re-building <code>CHrome.java</code> and <code>Firefox.java</code>.</p>

<p>c) I created a jar file for <code>Chrome.java</code> and <code>Firefox.java</code> respectively by selecting each of the java files and the Export it as runnable jar files. </p>

<p>d) The whole operation is such that at any one time, only either <code>Chrome.jar</code> or <code>Firefox.jar</code> can be executed and will read <code>Credentials.java</code>.</p>

<p>d) My issue is when the jar files are built, it includes calling to <code>Credentials.java</code>. My goal is to only build standalone jar files for <code>Chrome.jar</code> and <code>Firefox.jar</code>, so that I can make changes to <code>Credentials.java</code> without re-building <code>Chrome</code> or <code>Firefox</code>.</p>

<p>Hope to have advice on what mistake I have commited and suggestions on how to carry out my intended operation.</p>

<p>Thank you in advance</p>