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?
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
}
Are you looking for this
Compile:
Run:
Here jar file correspond to external libraries.