Return-Path: X-Original-To: apmail-ctakes-dev-archive@www.apache.org Delivered-To: apmail-ctakes-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8469711C49 for ; Sun, 13 Apr 2014 16:49:09 +0000 (UTC) Received: (qmail 29401 invoked by uid 500); 13 Apr 2014 16:49:08 -0000 Delivered-To: apmail-ctakes-dev-archive@ctakes.apache.org Received: (qmail 29364 invoked by uid 500); 13 Apr 2014 16:49:05 -0000 Mailing-List: contact dev-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list dev@ctakes.apache.org Received: (qmail 29265 invoked by uid 99); 13 Apr 2014 16:49:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Apr 2014 16:49:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of atom@practicefusion.com designates 207.46.163.235 as permitted sender) Received: from [207.46.163.235] (HELO na01-by2-obe.outbound.protection.outlook.com) (207.46.163.235) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Apr 2014 16:48:57 +0000 Received: from DM2PR07MB463.namprd07.prod.outlook.com (10.141.158.149) by DM2PR07MB462.namprd07.prod.outlook.com (10.141.158.147) with Microsoft SMTP Server (TLS) id 15.0.918.8; Sun, 13 Apr 2014 16:48:33 +0000 Received: from DM2PR07MB463.namprd07.prod.outlook.com ([10.141.158.149]) by DM2PR07MB463.namprd07.prod.outlook.com ([10.141.158.149]) with mapi id 15.00.0918.000; Sun, 13 Apr 2014 16:48:32 +0000 From: Abraham Tom To: "dev@ctakes.apache.org" Subject: RE: Command line invocation Thread-Topic: Command line invocation Thread-Index: Ac9WZw8CdP6WNlhSRWy3wLi90Vjz5gArM+gwAAiX2vA= Date: Sun, 13 Apr 2014 16:48:32 +0000 Message-ID: References: <6e55ab$8l34tf@ironport10.mayo.edu> In-Reply-To: <6e55ab$8l34tf@ironport10.mayo.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [38.122.7.254] x-forefront-prvs: 018093A9B5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009001)(6009001)(428001)(51914003)(189002)(199002)(13464003)(377454003)(15975445006)(79102001)(86362001)(80022001)(74502001)(31966008)(20776003)(80976001)(46102001)(77982001)(19580395003)(74662001)(83322001)(92566001)(99396002)(19580405001)(4396001)(33646001)(85852003)(83072002)(81542001)(87936001)(2656002)(66066001)(74316001)(76576001)(76482001)(54356999)(77096999)(99286001)(76176999)(50986999)(81342001)(24736002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB462;H:DM2PR07MB463.namprd07.prod.outlook.com;FPR:F4FCFF59.98F85DD5.F071A197.42EA6C31.20331;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (: practicefusion.com does not designate permitted sender hosts) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: practicefusion.com X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the information I was on the developer version, but now I have reverted to the user version= =20 I reinstalled cTakes, specifically apache-ctakes-3.1.0-bin.tar.gz and follo= wed the instructions from https://cwiki.apache.org/confluence/display/CTAKE= S/cTAKES+3.1+User+Install+Guide=20 Then I tried to execute the following=20 java -cp $CTAKES_HOME/lib/*:$CTAKES_HOME/desc/:$CTAKES_HOME/resources/ -Xm= s512M -Xmx1024M org.apache.ctakes.clinicalpipeline.ClinicalPipelineWithUmls and I got the following message Exception in thread "main" org.apache.uima.resource.ResourceInitializationE= xception Then I tried to invoke the jar intself java -jar -Xms512M -Xmx1024M ./lib/ctakes-clinical-pipeline-3.1.0.jar=20 but I got the following error Failed to load Main-Class manifest attribute from ./lib/ctakes-clinical-pipeline-3.1.0.jar Groovy is an option if I there are instructions on how to use it I would not mind helping to build those instructions to invoke specific cla= sses Best regards, Abraham Tom ____________________________ Abraham Tom Data Warehouse Engineer =20 -----Original Message----- From: Masanz, James J. [mailto:Masanz.James@mayo.edu]=20 Sent: Sunday, April 13, 2014 5:32 AM To: 'dev@ctakes.apache.org' Subject: RE: Command line invocation Yes, that's possible. You need more things on your classpath - you can take a look at the classpa= th within runctakesCVD.bat Or if you are open to using groovy, take a look at the scripts directory wi= thin ctakes-core -----Original Message----- From: Abraham Tom [mailto:atom@practicefusion.com] Sent: Saturday, April 12, 2014 10:55 AM To: dev@ctakes.apache.org Subject: Command line invocation I am not a core java developer, I am a Hadoop data guy We are experimenting= with using cTakes and we have no Java developers in house I am trying to invoke ClinicalPipelineWithUmls on a server where I installe= d the developer cTakes. This invocation is done via the following command= line java -verbose -cp "/opt/cTAKES-3.1.1/ctakes-clinical-pipeline/target/classe= s;/home/mapr/.m2/repository/org/cleartk/cleartk-util/0.9.2/cleartk-util-0.9= .2.jar" org.apache.ctakes.clinicalpipeline.ClinicalPipelineWithUmls but I am getting a Class not found error I would like to invoke via command line so that I can wrap a shell script a= round it and automate the processing of various docs. This should be possible shouldn't it? Best regards, Abraham Tom