Menu

FileNotFoundException

Help
JuLoOr
2014-08-14
2014-08-15
  • JuLoOr

    JuLoOr - 2014-08-14

    Hey guys, I have downloaded the newest version of pocketsphinx und imported it into eclipse. Building worked perfect but if I'm starting the app on my HTC one I get the well known filenotfoundexception .
    Is there already a solution?
    Best regards jul

     
  • JuLoOr

    JuLoOr - 2014-08-14

    Everything is in The assets folder and the pocketsphinx demo should work out of the box?

     
    • Nickolay V. Shmyrev

      Hello JuLoOr

      Please provide more information:

      1) Exact phone model

      2) Android version

      3) What exactly file is missing. When you report about exceptions it's better to provide their exact text, not just their name.

      4) Contents of logcat output.

      Remember, the more information you provide the faster you get an answer.

      If you miss files with md5 extension it seems like you didn't import Eclipse project properly and it is missing custom builder.

       
  • Alexander Solovets

    It should.

     
  • JuLoOr

    JuLoOr - 2014-08-14

    HTC One 4.4.2 Oroginal HTC Sense ROM
    All the files in assets. Can post the logcat later. I tought that the oinformations are enough because many people have this exact issue with the files.

     

    Last edit: JuLoOr 2014-08-14
  • Nickolay V. Shmyrev

    Can post the logcat later.

    You need to provide information on what file is actually missing.

     
  • JuLoOr

    JuLoOr - 2014-08-15

    The problem is in the asynctask. It catches exception an writes failed to init...

    new AsyncTask<void, void,="" exception="">() {
    @Override
    protected Exception doInBackground(Void... params) {
    try {
    Assets assets = new Assets(PocketSphinxActivity.this);
    File assetDir = assets.syncAssets();
    setupRecognizer(assetDir);
    } catch (IOException e) {
    return e;
    }
    return null;
    }</void,>

            @Override
            protected void onPostExecute(Exception result) {
                if (result != null) {
                    ((TextView) findViewById(R.id.caption_text))
                            .setText("----> Failed to init recognizer " + result);
                } else {
                    switchSearch(KWS_SEARCH);
                }
            }
        }.execute();
    
     

    Last edit: JuLoOr 2014-08-15
  • JuLoOr

    JuLoOr - 2014-08-15

    And now i get the error :
    "org.eclipse.ant.AntBuilderLaunchConfigurationType" does not exist.
    ??

     
    • Nickolay V. Shmyrev

      "org.eclipse.ant.AntBuilderLaunchConfigurationType" does not exist.

      This issue is covered in tutorial

      http://cmusphinx.sourceforge.net/wiki/tutorialandroid

      In short, you need to install Java toolkit support in your Eclipse.

       

      Last edit: Nickolay V. Shmyrev 2014-08-15

Log in to post a comment.

MongoDB Logo MongoDB