Forum: Installation

Post: errors doing the getting started...

errors doing the getting started...
inesd
May 6, 2012
Hello. I installed vmware to run voltdb…
I was doing the helloworld example of the GettingStarted.pdf but when I make javac Client.java gave the following errors:

Client.java:1: package org.voltdb does not exist
import org.voltdb.*;
^
Client.java:2: package org.voltdb.client does not exist
import org.voltdb.client.*;
^
Client.java:6: package org.voltdb.client does not exist
org.voltdb.client.Client myApp;
^
Client.java:7: cannot find symbol
symbol : variable ClientFactory
location: class Client
myApp = ClientFactory.createClient();
^
Client.java:16: cannot find symbol
symbol : class ClientResponse
location: class Client
final ClientResponse response = myApp.callProcedure("Select","Spanish");
^
Client.java:17: cannot find symbol
symbol : variable ClientResponse
location: class Client
if(response.getStatus() != ClientResponse.SUCCESS){
^
Client.java:22: cannot find symbol
symbol : class VoltTable
location: class Client
final VoltTable results[] = response.getResults();
^
Client.java:28: cannot find symbol
symbol : class VoltTable
location: class Client
VoltTable resultTable = results[0];
^
Client.java:29: cannot find symbol
symbol : class VoltTableRow
location: class Client
VoltTableRow row = resultTable.fetchRow(0);
^
9 errors

How can i get the import of org.voltdb?? I'm doing something wrong?
Hi inesd, Did you
scooper
May 6, 2012
Hi inesd,


Did you set up your CLASSPATH properly so that it can find the voltdb jars? See the first box here: GettingStarted/HWbuild.


If you downloaded source, did you run an ant build to produce the necessary jars, e.g. "ant" with no arguments or "ant jars"?


FYI - The helloworld project can be found fully populated in doc/tutorials/helloworld. It has a README that may also help getting started with it.


Cheers,
Steve