I should add that if I set up the same java command as a Run Configuration 
within eclipse, it works fine. It's the same command except I don't put the 
classpath in the command line. It uses my dev project classpath, which points 
to the same jar files.

On Apr 18, 2012, at 12:30 PM, Stephan Greene wrote:

> I'm actually just invoking java directly on the command line. Something like:
> 
> java -cp <path to UIMA and OPENNLP jars> MainClass
> 
> The main class is a UIMA utility that invokes a UIMA collection processing 
> engine, which includes OpenNLP annotators within it.
> 
> On Apr 18, 2012, at 12:17 PM, Jörn Kottmann wrote:
> 
>> On 04/18/2012 05:59 PM, Stephan Greene wrote:
>>> I'm running Java 1.6 on Mac OSX Lion. Does anyone know why this would 
>>> differ inside and outside eclipse, and how to fix it? Presumably something 
>>> to do with resource loading.
>>> 
>>> Line 192 of Version.java sets versionIn to null.
>>> 
>>>    InputStream versionIn = 
>>> Version.class.getResourceAsStream("opennlp.version");
>> 
>> When exactly does this happen?
>> When you are running the bin/opennlp script inside opennlp-tools source 
>> folder?
>> 
>> This scripts uses maven to start the whole thing. Not to be confused with a 
>> second
>> script which is part of our binary distribution and does the same thing, but 
>> with starting
>> the jvm via java itself.
>> 
>> Jörn
> 

Reply via email to