Compile java file in console
<p>I have java file and a few libraries which I need to import. How to compile Test.java file in console and add in command libraries names? </p>

<pre><code>import me.prettyprint.hector.api.Cluster;
import org.apache.cassandra.thrift.*;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.TFramedTransport;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TTransport;
import org.apache.thrift.transport.TTransportException;

import java.io.File;
import java.io.FileWriter;
import java.nio.ByteBuffer;
import java.util.UUID;

public class Test extends Thread{
   //here my code
} 
</code></pre>
