I am attempting to use a JSGF grammar with sphinx4 on linux. I have unpacked jsapi.sh, and done an ant all.
I have, in my config file, a component that looks like
When I try to run my system, I'm getting an error (the first line is a debug statement I added to the code):
[java] RIF: Trying to lookup class edu.cmu.sphinx.jsapi.JSGFGrammar using sun.misc.Launcher$AppClassLoader@913750
[java] Exception in thread "main" java.lang.NoClassDefFoundError: javax/speech/recognition/GrammarException
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:141)
Note that I believe it *is* finding the class file. As evidence, if I misspell or miscapitalize the class name, I get a different, "Class Not Found" error message. So I believe something may be wrong with the .class file, or perhaps I am somehow specifying the properties incorrectly? Any help is most appreciated.
Cheers,
rif
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am attempting to use a JSGF grammar with sphinx4 on linux. I have unpacked jsapi.sh, and done an ant all.
I have, in my config file, a component that looks like
<component name="JSGFGrammar" type="edu.cmu.sphinx.jsapi.JSGFGrammmar">
<property name="baseGrammarURL" value="file:/home/rif/Tmp/"/>
<property name="grammarName" value="hello"/>
</component>
When I try to run my system, I'm getting an error (the first line is a debug statement I added to the code):
[java] RIF: Trying to lookup class edu.cmu.sphinx.jsapi.JSGFGrammar using sun.misc.Launcher$AppClassLoader@913750
[java] Exception in thread "main" java.lang.NoClassDefFoundError: javax/speech/recognition/GrammarException
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:141)
Note that I believe it *is* finding the class file. As evidence, if I misspell or miscapitalize the class name, I get a different, "Class Not Found" error message. So I believe something may be wrong with the .class file, or perhaps I am somehow specifying the properties incorrectly? Any help is most appreciated.
Cheers,
rif