2 Replies Latest reply: Jan 22, 2014 5:51 AM by Helen21again RSS

Problem compiling HelloBigDataWorld

Helen21again Newbie
Currently Being Moderated

Hello all

I'm very much a newbie with both NoSQL and Java.

 

I've just downloaded and unzipped kv-ce-2.1.57.zip (md5) from the Oracle site.

 

I've created a kvlite database - that was fine.

 

Following the quickstart.html in a second window (I'm using DOS) I issued

java -jar lib/kvstore.jar ping -host myhost -port 5000

and that was fine and returned the resultsas expected.

 

Then I tried compiling HelloBigDataWorld using the following:

javac -cp examples:lib/kvclient.jar examples/hello/HelloBigDataWorld.java

 

Here I get a load of errors:

examples\hello\HelloBigDataWorld.java:46: error: package oracle.kv does not exist

import oracle.kv.KVStore;

                ^

examples\hello\HelloBigDataWorld.java:47: error: package oracle.kv does not exist

import oracle.kv.KVStoreConfig;

                ^

examples\hello\HelloBigDataWorld.java:48: error: package oracle.kv does not exist

import oracle.kv.KVStoreFactory;

                ^

examples\hello\HelloBigDataWorld.java:49: error: package oracle.kv does not exist

import oracle.kv.Key;

                ^

examples\hello\HelloBigDataWorld.java:50: error: package oracle.kv does not exist

import oracle.kv.Value;

                ^

examples\hello\HelloBigDataWorld.java:51: error: package oracle.kv does not exist

import oracle.kv.ValueVersion;

                ^

examples\hello\HelloBigDataWorld.java:75: error: cannot find symbol

    private final KVStore store;

                  ^

  symbol:   class KVStore

  location: class HelloBigDataWorld

examples\hello\HelloBigDataWorld.java:128: error: cannot find symbol

            (new KVStoreConfig(storeName, hostName + ":" + hostPort));

                 ^

  symbol:   class KVStoreConfig

  location: class HelloBigDataWorld

examples\hello\HelloBigDataWorld.java:127: error: cannot find symbol

        store = KVStoreFactory.getStore

                ^

  symbol:   variable KVStoreFactory

  location: class HelloBigDataWorld

examples\hello\HelloBigDataWorld.java:148: error: cannot find symbol

        store.put(Key.createKey(keyString),

                  ^

  symbol:   variable Key

  location: class HelloBigDataWorld

examples\hello\HelloBigDataWorld.java:149: error: cannot find symbol

                  Value.createValue(valueString.getBytes()));

                  ^

  symbol:   variable Value

  location: class HelloBigDataWorld

examples\hello\HelloBigDataWorld.java:151: error: cannot find symbol

        final ValueVersion valueVersion = store.get(Key.createKey(keyString));

              ^

  symbol:   class ValueVersion

  location: class HelloBigDataWorld

examples\hello\HelloBigDataWorld.java:151: error: cannot find symbol

        final ValueVersion valueVersion = store.get(Key.createKey(keyString));

                                                    ^

  symbol:   variable Key

  location: class HelloBigDataWorld

 

From the first one I assume it can't find the package oracle.kv  I've checked and the kvclient.jar file is in the lib directory - as far as I can see from unzipping it the oracle .kv package is in it.

 

I know I'm running this on Vista (all I have available at the moment) but thought this should work OK

 

Can anyone tell me what step I've missed please?

Many thanks

Helen

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points