On 8/4/2011 9:51 AM, Arthur wrote:
> Marshall Schor <msa@...> writes:
>
>> what's in your setenv.txt file?
>>
>> -Marshall
>>
>> On 8/2/2011 4:01 PM, Arthur Burkart wrote:
>>> Can someone provide an example of how I'd do the following?
>>> *
>>> *
>>> *"For instance<http://uima.apache.org/downloads/releaseDocs/2.1.0-
> incubating/docs/html/tools/tools.html#ugr.tools.pear.installer>,
>>> if you want to run your component in the Collection Processing Engine
>>> Configurator GUI application, you need to add the environment variables
>>> settings from the component's *setenv.txt* file to the *cpeGui.bat
>>> (cpeGui.sh)* script file in the *<UIMA_HOME>/bin directory." -UIMA Tools
>>> Guide and Reference (Chapter 8)
>>>
>>> I guess I don't understand what exactly to take out of the setenv.txt file
>>> or where/how to put it in the cpeGui.bat/sh file.
>>>
>>> Thank you for your help,
>>>
>>> Arthur Burkart
>>>
>>> Marshfield Clinic
>>> Marshfield, Wisconsin, USA
>>>
>>
> Well, there are a couple scenarios. 
> My setenv.txt file looks like this:
>
> CLASSPATH=<directory>
> PATH=<directory>
> uima.datapath=<directory>
>
> Or it looks like this:
>
> CLASSPATH=<directory>
> PATH=<directory>
>
> I understand this is not a complicated problem and I should have no 
> difficulty 
> figuring this out, but I've tried adding the CLASSPATH and the PATH variables 
> to 
> the cpeGui and setUimaClassPath batch files, but to no avail.

Note: The cpeGui.bat calls runUimaClass.bat; the setUimaCalssPath.bat is no
longer used (as of release 2.3.1 - are you using this release?).

These are environment variable settings. 
You can write a tiny cover script that sets these and then calls cpuGui.bat.  If
you were to modify cpuGui.bat, I think you would add the lines:

set PATH=%PATH%;<directory>
set CLASSPATH=<jarPath>;%CLASSPATH%

or something like that.

-Marshall (not a Windows scripting expert ... but hope this helps )
> Any advice would be appreciated.
>
> -Arthur
>
>
>

Reply via email to