title: Console command to do Java auto-import
body: <p>I develop in Java using notepad.
  I am quite happy with the development cycle, but I lack something like the auto-import feature like that Eclipse and other big IDEs have.
  My guess is: if Eclipse does it, then there is an external tool that can do that.</p>
  
  <p>Can I just install such a tool and use it from command line?</p>
  
  <p>For example I have this source code:</p>
  
  <pre><code>public class Test extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          final TextView tv = new TextView(this);
          tv.setText("Hello World!");
          setContentView(tv);
      }
  }
  </code></pre>
  
  <p>I would like to run some utility like that:</p>
  
  <pre><code>jautoimp Test.java
  </code></pre>
  
  <p>and get this output:</p>
  
  <pre><code>import android.app.Activity;
  import android.os.Bundle;
  import android.widget.TextView;
  </code></pre>