From uima-user-return-2482-apmail-incubator-uima-user-archive=incubator.apache.org@incubator.apache.org Mon Aug 10 15:05:52 2009 Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 54774 invoked from network); 10 Aug 2009 15:05:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 15:05:52 -0000 Received: (qmail 16142 invoked by uid 500); 10 Aug 2009 15:05:58 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 16080 invoked by uid 500); 10 Aug 2009 15:05:58 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 16070 invoked by uid 99); 10 Aug 2009 15:05:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 15:05:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of twgoetz@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Aug 2009 15:05:49 +0000 Received: (qmail invoked by alias); 10 Aug 2009 15:05:27 -0000 Received: from blueice1n1.de.ibm.com (EHLO [9.152.14.84]) [195.212.29.163] by mail.gmx.net (mp062) with SMTP; 10 Aug 2009 17:05:27 +0200 X-Authenticated: #25330878 X-Provags-ID: V01U2FsdGVkX18S3klPwpUS8lynZKwqKuzdFDWTyLIhv4xsMAzPHz okbA663nErn2cI Message-ID: <4A803735.6050503@gmx.de> Date: Mon, 10 Aug 2009 17:05:25 +0200 From: Thilo Goetz User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: issues with overview-and-setup on Windows References: <6066C0104D147143AE14183367D21C3301C3F9B6@de-ex012.groupinfra.com> <63e2e4460908100438p35643edpc79d4368b33ff982@mail.gmail.com> <4A8012E3.2020301@gmx.de> <4A80285E.9030803@gmx.de> <4A802FC7.3070804@schor.com> In-Reply-To: <4A802FC7.3070804@schor.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 X-Virus-Checked: Checked by ClamAV on apache.org Marshall Schor wrote: > Thilo Goetz wrote: >> Kameron Cole wrote: >> >>> I am running into issues when going through the good old old example >>> instructions included with UIMA 2.22. >>> >>> I am posting to draw attention to these, in case they need attention. Also, >>> they may bring up other issues which are worth discussing here. >>> >>> Here is one: if I want to add the sources to the jar files, there is a >>> "bat" file, in the unzipped source code directory. It basically just runs >>> the java jar command for the source jars. >>> >>> cd jVinci\src\main\java >>> jar %UIMA_HOME%\lib\jVinci.jar * >>> >>> On Windows, you will certainly get an error, saying 'no 'jar' command on >>> this system.' >>> >>> Problem 1. The script just calls the jar command, instead of calling java >>> -jar. I don't know when that has ever worked - certainly it has been many >>> years ago. Currnelty (JDK 1.6.0_13_b03), you need to use the java -jar >>> command >>> >> Kameron, the script is correct. A full Java SDK contains a jar(.exe) command >> in its bin directory, just like it has a java(.exe). The jar command does >> something different from "java -jar", namely package a jar. java -jar otoh >> runs an executable jar. >> >> What you need to do is 1) make sure you have a Java SDK, not just a jre. Then >> you must make sure that the bin directory of your java sdk is on your path, >> so your system knows how to execute the jar command. >> >> HTH, >> Thilo >> >> > > Thanks, Kameron; we would be happy to get a patch that (a) verified that > the user running this had the Java JDK with the "jar" executable, and > tell them they need to get it if it isn't there, and (b) made use of > JAVA_HOME if set to find the java to use, in preference to needing it to > be on the PATH. The second part could be copied from some of our other > bat/sh files. > > -Marshall A first step would be to add this information to the documentation, so our users have a chance of figuring this out themselves. --Thilo