Menu

Running Error of the HelloWorld demo

Help
Dan
2005-04-29
2012-09-22
  • Dan

    Dan - 2005-04-29

    Hello,

    I tried to run the HelloWorld demo in the JCreator, but it showed the following error message:

    Loading...
    Exception in thread "main" java.lang.NullPointerException
    at edu.cmu.sphinx.util.props.SaxLoader.load(SaxLoader.java:64)
    at edu.cmu.sphinx.util.props.ConfigurationManager.loader(ConfigurationMa
    nager.java:383)
    at edu.cmu.sphinx.util.props.ConfigurationManager.<init>(ConfigurationMa
    nager.java:115)
    at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:47)
    Press any key to continue...

    Does any body know how to solve the above problem?

    Thanks in advance.

    Dan

     
    • Dan

      Dan - 2005-05-17

      Hello,

      Once again, does any one know how to solve the problem I wrote last time?

      I couldnt find classes edu.cmu.sphinx.util.props.SaxLoader.load and edu.cmu.sphinx.util.props.ConfigurationManager.loader in the Sphinx-4 Javadocs http://cmusphinx.sourceforge.net/sphinx4/javadoc/index.html

      By the way, the HelloWorld demo worked when I followed the instructions on page http://cmusphinx.sourceforge.net/sphinx4/demo/sphinx/helloworld/README.html

      But, I want to make my own speech recognition application in Java by using JCreator.

      Any help will be greatly appreciated.

      Thank you,

      Dan

       
      • Willie Walker

        Willie Walker - 2005-05-17

        Hi Dan:

        We're not big IDE users (my favorite IDE consists of emacs and ant), so it's tough for us to debug problems like this. Based upon your description, though, I'd guess that there's a CLASSPATH problem somewhere.

        Will

         
    • Dan

      Dan - 2005-05-18

      Hi Will,

      Thanks for your reply.

      I added all the jar files from C:..\sphinx4-1.0beta\lib to C:\jdk1.5.0_02\jre\lib\ext. The demo doesnt have a compiling problem, but it has an executing problem.

      Do you think where ClassPath problem might be?

      Dan

       
      • Willie Walker

        Willie Walker - 2005-05-18

        Hi Dan:

        It looks like the run might not be finding all of the Sphinx-4 class files. They may need to be packaged in a jar file for everything to work, but I'm not exactly sure about this.

        Will

         
    • Dan

      Dan - 2005-06-01

      Hi,

      Does any one esle use JCreator to run the HelloWorld demo?

      I tried Boland JBuilder, it has the same problems.

      Dan

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.