Menu

Help required for Helloworld demo:

Help
G_D
2005-04-20
2012-09-22
  • G_D

    G_D - 2005-04-20

    I tried running the demo Helloworld but an error
    > "Exception in thread "main"
    > java.lang.NoClassDefFoundError:
    > edu/cmu/sphinx/props/PropertyException"
    > occured.
    > I need some help on how to resolve this error
    > thanks in advance for ur help
    GD
    >

     
    • John LaBarge

      John LaBarge - 2007-02-23

      Actually I have a different problem. But I did see this in the forum a while back.

       
    • Willie Walker

      Willie Walker - 2005-05-02

      Hi:

      It looks like you may not have found the instructions at:

      http://cmusphinx.sourceforge.net/sphinx4/demo/sphinx/helloworld/README.html

      Hope these help,

      Will

       
      • John LaBarge

        John LaBarge - 2007-02-23

        I followed those instructions, but I still have the same problem:

        JLBMAC:~/development/sphinx4-1.0beta john$ ls -l lib
        total 49504
        -rwxrwxrwx 1 john john 1229 Sep 27 2004 README.txt
        -rwxrwxrwx 1 john john 306 Sep 27 2004 README_RHINO.txt
        -rwxrwxrwx 1 john john 1435075 Sep 27 2004 TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar
        -rwxrwxrwx 1 john john 11152107 Sep 27 2004 WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar
        -rwxrwxrwx 1 john john 11111377 Sep 27 2004 WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz.jar
        -rwxrwxrwx 1 john john 619837 Sep 27 2004 js.jar
        -rwxrwxrwx 1 john john 82452 Sep 27 2004 jsapi.exe
        -rwxrwxrwx 1 john john 51811 Dec 20 2001 jsapi.jar
        -rwxrwxrwx 1 john john 84305 Sep 27 2004 jsapi.sh
        -rwxrwxrwx 1 john john 771407 Sep 27 2004 sphinx4.jar
        -rwxrwxrwx 1 john john 8674 Sep 27 2004 tags.jar
        JLBMAC:~/development/sphinx4-1.0beta john$ unzip bin/HelloWorld.jar -d /tmp/helloworld
        Archive: bin/HelloWorld.jar
        creating: /tmp/helloworld/META-INF/
        inflating: /tmp/helloworld/META-INF/MANIFEST.MF
        inflating: /tmp/helloworld/demo/sphinx/helloworld/HelloWorld.class
        inflating: /tmp/helloworld/demo/sphinx/helloworld/hello.gram
        inflating: /tmp/helloworld/demo/sphinx/helloworld/helloworld.config.xml
        JLBMAC:~/development/sphinx4-1.0beta john$ ls -l /tmp/helloworld
        total 0
        drwxr-xr-x 3 john wheel 102 Feb 22 19:57 META-INF
        drwxr-xr-x 3 john wheel 102 Feb 23 07:36 demo
        JLBMAC:~/development/sphinx4-1.0beta john$ ls -l /tmp/helloworld/demo/sphinx/helloworld/
        total 40
        -rw-r--r-- 1 john wheel 3421 Feb 22 19:28 HelloWorld.class
        -rw-r--r-- 1 john wheel 171 Feb 1 09:55 hello.gram
        -rw-r--r-- 1 john wheel 11265 Feb 1 09:55 helloworld.config.xml
        JLBMAC:~/development/sphinx4-1.0beta john$ java -mx256m -jar bin/HelloWorld.jar
        Loading...
        Problem configuring HelloWorld: Property Exception component:'jsgfGrammar' property:'grammarLocation' - Can't locate resource:/demo.sphinx.helloworld.HelloWorld
        Property Exception component:'jsgfGrammar' property:'grammarLocation' - Can't locate resource:/demo.sphinx.helloworld.HelloWorld
        at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getResource(ValidatingPropertySheet.java:372)
        at edu.cmu.sphinx.jsapi.JSGFGrammar.newProperties(JSGFGrammar.java:272)
        at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
        at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
        at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:248)
        at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
        at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
        at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:180)
        at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
        at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
        at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:71)
        at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
        at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(ValidatingPropertySheet.java:403)
        at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:93)
        at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:214)
        at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:49)
        JLBMAC:~/development/sphinx4-1.0beta john$

        Can anyone help ?

        Thanks,
        John

         

Log in to post a comment.