Menu

Classes not recognized in the demo folder

Help
simon
2007-12-27
2012-09-22
  • simon

    simon - 2007-12-27

    Does anyone know why some classes are not recognized in the demo folder for Sphinx-4 eventhough the packages are included and classes are imported?

     
    • Nickolay V. Shmyrev

      "not recognized" is not the right word here I suppose. Explain

      1)what are you doing
      2)what tools are you using
      3)what results are you getting and
      4)what do you expect.

      It's a basic rules for any sensible request. See http://www.chiark.greenend.org.uk/~sgtatham/bugs.html for more details.

       
      • simon

        simon - 2007-12-28

        Here is what I wan and what I'm doing.

        1) I want to change the "HelloWorld" so that it recognizes other words (I succesfully did this)
        2) I want to pass the string "resultText" in the "HelloWrold.java" to another project.
        3) To pass the string, I have created a buffer and a server client pair.
        4) The client is the "HelloWorld" project, the cliet is called "SphinxClient.java", the server is the other project, which is a GUI for a robotic arm.
        5) I'm using "NetBeans"

        PROBLEM:

        1) "HelloWorld.java" does not recognize "SphinxClient.java"
        2) They both have the "package demo.sphinx.helloworld"

        I should mention that this is also a problem on other demo projects such as the "jsapi.cardmatch" project; I see the same problem in the "CardMatch.java" becasue this file does not recognize "CardMatchFrame.java" and "Recorder.java"

        Tahnk you for the response Nickolay, I hope this is clear I can clarify if needed.

        Simon

         
        • Nickolay V. Shmyrev

          No, I don't understand the meaning of "recognize" here. What particular error does NetBeans show to you?

           
          • simon

            simon - 2007-12-29

            Assuming that the other things I explained were understood, the error on NetBeans is :

            cannot find symbol
            symbol: class SphinxClient
            location: class demo.sphinx.helloworld.HelloWorld

            Therefore; I've created a new class called "SphinxClient" I've included the package "demo.sphinx.helloworld" but that doesn't get rid of the error.

            I read somewhere there is a project to come with a second version of Sphinx-4, maybe this is one of the bugs that can be worked out.

             
            • Nickolay V. Shmyrev

              For sure it's not a bug, you made some silly mistake like this one, caused by a little Java experience:

              http://www.java-forums.org/awt-swing/2901-error-cannot-find-symbol.html

              Either post your code or read any book on Java.

               
              • simon

                simon - 2007-12-31

                I checked for those sort of mistakes but the classes don't take any arguments. Maybe I overlooked something during initial setup; eventhough I've gone over the steps several times. I made the comment about a bug becasue the same thing happens with the "cardmatch" demo. What I mean is I can't run this demo because of the same mistake (the "helloworld" I was able to run before my modifications.

                If anyone has had the same mistake and has been able to fix it I appreciate any tips. I'm trying to work around this but is hard to get communication going without getting rid of this error.

                Thanks!!!

                 

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.