title: Java: Storing project files so program is called without listing directory in console using javac
body: <p>Is it possible to save .java file in a directory so that I do not need to list or include the path when using console.</p>
  
  <p>Currently my projects are in the following location: <code>N:\jdev\lab</code> and each time I run the console I must change the directory from Windows default.</p>
  
  <p>Here is a very basic example:</p>
  
  <pre><code>Microsoft Windows [Version 6.1.7601]
  Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
  
  C:\Windows\System32&gt; n:
  
  N:\&gt; cd jdev\lab
  
  N:\jdev\lab&gt; javac ConvertGallonToLiterCaller.java
  
  N:\jdev\lab&gt; java ConvertGallonToLiterCaller
  
  Enter number of gallon(s) to convert: 500
  Result: 500.0 gallons is equals to 1892.7 liters
  
  N:\jdev\lab&gt; exit
  </code></pre>
  
  <p>I would rather do something like this:</p>
  
  <pre><code>C:\Windows\System32&gt; javac ConvertGallonToLiterCaller.java
  </code></pre>