title: Where to store the downloaded .jar files?
body: <p>As I am new to Java, I want to ask that where should I put the downloaded .jar files, so that I don't have to use <code>-cp</code> option in <code>javac</code> command to compile it?</p>
  
  <p>For example, suppose I have written a java code "HelloWorld.java" to do a basic input output and I have done <code>import java.io.*;</code> or <code>import java.util.*;</code>, and doing <code>javac HelloWorld.java</code> compile command on it works fine, however, if I have some (for example) <code>import com.mongodb.BasicDBObject;</code> line in my code and it won't compile without me downloading the <code>mongo-java-driver-3.10.2.jar</code> and putting it's location in <code>-cp</code> option of <code>javac</code>. (Like: <code>javac -cp "/home/shivam/Downloads/*" HelloWorld.java</code>).</p>
  
  <p>So I just want to ask that where should I store the  <code>mongo-java-driver-3.10.2.jar</code> file in my computer so that, using just the <code>javac NameOfCode.java</code> command without the <code>-cp</code> option will compile my code successfully?</p>
  
  <p>FYI, I have Ubuntu 18.04.2 and am using Java-11.</p>
  
  <p>Thank you!!</p>