Loading...
Problem configuring HelloWorld: Property Exception component:'flatLinguist' prop
erty:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.
jsapi.JSGFGrammar object:jsgfGrammar
Property Exception component:'flatLinguist' property:'grammar' - Can't instantia
te: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGra
mmar
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(Valida
tingPropertySheet.java:414)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.
java:248)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
nager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(Valida
tingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProp
erties(SimpleBreadthFirstSearchManager.java:180)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
nager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(Valida
tingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:71)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
nager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(Valida
tingPropertySheet.java:403)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:93
)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
nager.java:214)
at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:49)
I have tried adding the jar to the classpath with -cp at runtime, but it gets the same error. I tried searching these forums for the problem, but they all suggest the same thing. Any help would be great.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get
Loading...
Problem configuring HelloWorld: Property Exception component:'flatLinguist' prop
erty:'grammar' - Can't instantiate: jsgfGrammar Can't find class edu.cmu.sphinx.
jsapi.JSGFGrammar object:jsgfGrammar
Property Exception component:'flatLinguist' property:'grammar' - Can't instantia
te: jsgfGrammar Can't find class edu.cmu.sphinx.jsapi.JSGFGrammar object:jsgfGra
mmar
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(Valida
tingPropertySheet.java:414)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.
java:248)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
nager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(Valida
tingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProp
erties(SimpleBreadthFirstSearchManager.java:180)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
nager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(Valida
tingPropertySheet.java:403)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:71)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
nager.java:214)
at edu.cmu.sphinx.util.props.ValidatingPropertySheet.getComponent(Valida
tingPropertySheet.java:403)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:93
)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
nager.java:214)
at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:49)
I have tried adding the jar to the classpath with -cp at runtime, but it gets the same error. I tried searching these forums for the problem, but they all suggest the same thing. Any help would be great.