1 Reply Latest reply: Feb 1, 2013 11:37 AM by MarkNoyes RSS

    Error in compiling HellobigDataWorld Class

    User411665
      I am newbie to NoSQL and installed NoSQL on test machine, start kvstore with hostname and port. But while compiling example class HelloBigDataWorld getting multiple below errors:

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

      ---------------------------

      1. ERROR in hello/HelloBigDataWorld.java (at line 10)
      import oracle.kv.KVStore
      The import oracle cannot be resolved

      2. ERROR in hello/HelloBigDataWorld.java (at line 11)
      import oracle.kv.KVStoreconfig
      The import oracle cannot be resolved

      3. ERROR in hello/HelloBigDataWorld.java (at line 12)
      import oracle.kv.KVStoreFactory
      The import oracle cannot be resolved

      4.ERROR in hello/HelloBigDataWorld.java (at line 13)
      import oracle.kv.Key
      The import oracle cannot be resolved

      5. ERROR in hello/HelloBigDataWorld.java (at line 14)
      import oracle.kv.Value
      The import oracle cannot be resolved

      10. ERROR in hello/HelloBigDataWorld.java (at line 92)
      (new KVStoreConfig (storeName, hostname + ":" + hostport));

      Can somebody point what I am missing please?

      Thanks in advance

      Amit
        • 1. Re: Error in compiling HellobigDataWorld Class
          MarkNoyes
          Hi Amit,

          I have a couple of suggestions for you.

          Based on your javac command line and output, it looks as though you are referencing kvclient.jar incorrectly. I believe the path to the file should be ../lib/kvclient.jar.

          Also, depending on what version of NoSQL DB you downloaded, there might not be a kvclient.jar file present. It might have a version number suffix (e.g. kvclient-2.0.23.jar). If so, either update your classpath to reflect that name change or create a symlink to the versioned jar file from kvclient.jar.

          - Mark