It will be easier when the build system be ready, but for now you can use the following commands:
- Go to the folder <project-root>/opennlp-tools - Execute the command: mvn dependency:copy-dependencies -DoutputDirectory="lib" to copy the libraries to lib folder - Copy the file <project-root>/opennlp-tools/target/opennlp-tools-1.5.1- incubating-SNAPSHOT.jar to <project-root>/opennlp-tools - Now we are ready to execute: bin/opennlp Regards William On Thu, Jan 20, 2011 at 11:27 PM, Ted Pedersen <[email protected]> wrote: > Hi Jorn, > > Perfect! I was able to run the documentAnalyzer.sh just fine with the > Pear demo! It's all very nicely put together, I'm looking forward to > working with this more. > > One thing I noticed though was that when I went to the /bin directory > to run openNLP from the command line, I got the following.... > > ted@linux-qdw9:~/trunk/opennlp-tools/bin> ./opennlp > Unable to access jarfile ./../opennlp-tools-*.jar > > I also tried this... > > ted@linux-qdw9:~/trunk/opennlp-tools> bin/opennlp > Unable to access jarfile bin/../opennlp-tools-*.jar > > I think when I use the binary version (which is what I normally do, up > until today) I don't need to do anything in order to make the command > line work...is there something additional I need to build or set to > make the command line work when building from source? > > Thanks! > Ted > > On Thu, Jan 20, 2011 at 6:33 PM, Jörn Kottmann <[email protected]> wrote: > > On 1/21/11 1:22 AM, Ted Pedersen wrote: > >> > >> Thanks very much for your swift help. I think I made a great deal of > >> progress, although I didn't quite get to the point of running the Pear > >> demo... > >> > >> Here's what I did....perhaps someone can spot where I might have made > >> a false move...? > > > > No looks like you did anything correct. > > > > In my opinion that is the problem you encounter: > > https://issues.apache.org/jira/browse/OPENNLP-75 > > > > The install.xml contains a kind of classpath, the jar names > > in this path seem to be invalid, I fixed it now and checked in. > > > > I guess it works, I but do not have time to test it right away, > > but maybe you will, please report you results back. > > > > Jörn > > > > > > -- > Ted Pedersen > http://www.d.umn.edu/~tpederse <http://www.d.umn.edu/%7Etpederse> >
