How do I compile using javac in command line this small code snippet : <p>I am learning springframework and I don't want to use any IDE, and I want to work in java in pure command line in bash. I already have downloaded lots of jar I can see them in /root/.m2/repository as well as in /usr/share/maven/ref/repository/ too. The <code>AppConfig.java</code> i want to compile has the below content: </p>

<pre><code>@Configuration
public class AppConfig {
    // this is all there is
}
</code></pre>

<p>It compiles fine without the <code>@Configuration</code> annotation. At the top of my head, I know that I need to pull-in the correct jar. To be systematic in future dealings of these things, I want to know how to:</p>

<ul>
<li>Identify the correct jar and location of jar needed for a keyword</li>
</ul>

<p>I accept maven pom.xml way of doing things if needed, but if possible I want to work in the most minimal way.</p>
