Menu

My Jar file can't detect the models

Help
james
2009-09-10
2013-04-16
  • james

    james - 2009-09-10

    I made a program revolving around the OpenNLP utilities, when i run it using netbeans it can use the models with no problem. But when I compiled and made a jar file of my program, it cant detect the models. I tried placing the models where my jar file was and it worked partially, the tokenizer worked, but the parser didn't yes Opennlp, maxent and trove libraries are referenced library by my own jar file, the problem lies in the models it can't find it specifically the parser folder. please help me please...

     
    • Thomas Morton

      Thomas Morton - 2009-09-11

      Hi,
         I'm not sure what to tell you.  To create a model you typically specify the location of the model files on your file system.  If the models aren't where you are telling the code that they are, then they won't load.  Look for where in your code you are loading the models, see what path you are sending as the location of the model files, check if the files are there and adjust either the path or your file system.

      Hope this helps...Tom

       

Log in to post a comment.