Forum: Building VoltDB Applications

Post: Running aplication on remore machine

Running aplication on remore machine
Ilia
Jul 20, 2015
Hi
I have voltdb on unix server and i wanna read simple application on java for remote windows pc, for connection db only, for test.
i create db on server.
I have eclips and i load library for him.
look at this code:

import org.voltdb.client.ClientConfig;
import org.voltdb.client.ClientFactory;

public class my {
public static void main()
{
org.voltdb.client.Client client = null;
ClientConfig config = null;
try {
config = new ClientConfig("admin","admin");
client = ClientFactory.createClient(config);
client.createConnection("192.168.1.1",21211);
} catch (java.io.IOException e) {
e.printStackTrace();
System.exit(-1);
}
}
}

error:
20, 2015 4:15:16 PM org.voltcore.logging.VoltUtilLoggingLogger log
SEVERE: You must specify a startup action, either create, recover, rejoin, collect, or compile.
Please refer to VoltDB documentation for command line usage.
Ilia
Jul 20, 2015
..................
pzhao
Aug 10, 2015
Ilia,

Please try our helloworld/Client.java and take a look at our tutorial documentation.

Peter Zhao