Search code examples
javaeclipsesphinx4

Sphinx classes not found despite library being in classpath?


I downloaded sphinx4-1.0beta6-bin.zip and installed it on my 64-bit Ubuntu 12.04 LTS. I was able to run the HelloWorld example. However, when I create my own class and create a Configuration object as shown here:

Configuration configuration = new Configuration();  

It gets flagged as an error. Eclipse cannot find the class at all even though I have appropriate jars in the library and library is in the build path.

Here are the jars in the library:

  1. js.jar
  2. jsapi.jar
  3. sphinx4.jar
  4. tags.jar

Then, why am I getting this error ?


Solution

  • This class doesn't exist in released version, to use it you need to checkout an experimental hl-interface branch with subversion:

    http://sourceforge.net/p/cmusphinx/code/HEAD/tree/branches/hl-interface/

    To learn more about subversion see

    http://www.ibm.com/developerworks/library/os-ecl-subversion/