I'm trying to run JSGFDemo from sphinx4 demos. I followed these steps from terminal:
cd /Users/username/sphinx4-1.0beta6
java -mx200m -jar bin/JSGFDemo.jar
But I got this error:
Exception in thread "main" java.lang.ExceptionInInitializerError
at edu.cmu.sphinx.demo.jsapi.jsgf.JSGFDemo.<init>(JSGFDemo.java:77)
at edu.cmu.sphinx.demo.jsapi.jsgf.JSGFDemo.main(JSGFDemo.java:244)
Caused by: java.lang.RuntimeException: Uncompilable source code - package javax.speech does not exist
at com.sun.speech.engine.BaseEngine.<clinit>(BaseEngine.java:13)
... 2 more
line 77 is:
jsapiRecognizer = new BaseRecognizer(jsgfGrammar.getGrammarManager());
I've already search about the problem and all what I find is ppl using IDE rather than command line, also I already run jsapi.sh.
How can I solve this problem?