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 6F71A10192 for ; Sun, 21 Apr 2013 12:24:14 +0000 (UTC) Received: (qmail 22133 invoked by uid 500); 21 Apr 2013 12:24:13 -0000 Delivered-To: apmail-ctakes-dev-archive@ctakes.apache.org Received: (qmail 21936 invoked by uid 500); 21 Apr 2013 12:24:12 -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 21577 invoked by uid 99); 21 Apr 2013 12:24:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Apr 2013 12:24:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Timothy.Miller@childrens.harvard.edu designates 134.174.13.92 as permitted sender) Received: from [134.174.13.92] (HELO mailsmtp2.childrenshospital.org) (134.174.13.92) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Apr 2013 12:24:00 +0000 Received: from pps.filterd (mailsmtp2.childrenshospital.org [127.0.0.1]) by mailsmtp2.childrenshospital.org (8.14.5/8.14.5) with SMTP id r3LCNFZe031955 for ; Sun, 21 Apr 2013 08:23:28 -0400 Received: from smtpndc2.chboston.org (smtpndc2.chboston.org [10.20.50.105]) by mailsmtp2.childrenshospital.org with ESMTP id 1bu29ru6h4-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 21 Apr 2013 08:23:28 -0400 Received: from pps.filterd (smtpndc2.chboston.org [127.0.0.1]) by smtpndc2.chboston.org (8.14.5/8.14.5) with SMTP id r3LCMDXs028271 for ; Sun, 21 Apr 2013 08:23:28 -0400 Received: from chexhubcas3.chboston.org (internal-ndc-nat-v1260.tch.harvard.edu [10.20.50.4]) by smtpndc2.chboston.org with ESMTP id 1bp1sv753a-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Sun, 21 Apr 2013 08:23:28 -0400 Received: from CHEXMBX3A.CHBOSTON.ORG ([fe80::8df1:9966:b0b0:841d]) by CHEXHUBCAS3.CHBOSTON.ORG ([::1]) with mapi id 14.02.0342.003; Sun, 21 Apr 2013 08:23:28 -0400 From: "Miller, Timothy" To: "dev@ctakes.apache.org" Subject: export runnable jar issue Thread-Topic: export runnable jar issue Thread-Index: Ac4+iwaGqLCFiR8bS/OaQpU+0pRbIw== Date: Sun, 21 Apr 2013 12:23:27 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.18.21.55] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-04-21_05:2013-04-19,2013-04-21,1970-01-01 signatures=0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-04-21_05:2013-04-19,2013-04-21,1970-01-01 signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org I've found it useful to "export runnable jar" to create a single file=0A= that can be run with 'java -jar' on a server/cluster for a given run=0A= configuration. There is an issue that may be an eclipse bug but also may=0A= be a ctakes issue.=0A= =0A= The issue is that files under src/main/java source folders export=0A= exactly as expected, while files under src/main/resources folders export=0A= with the "resources" folder prepended. So you will get the following=0A= classpaths in the jar:=0A= =0A= org/apache/ctakes/someproject/SomeCode.class=0A= resources/org/apache/ctakes/someproject/some_model.bin=0A= =0A= This obviously screws up important classpaths at runtime. I can=0A= workaround it, but does anyone have a sense of whether this issue is:=0A= 1) Clearly an eclipse issue with nothing we can do except try to notify=0A= someone=0A= 2) An eclipse issue but there is something we're doing wrong (like a=0A= convention for resources we're not following that would fix this)=0A= 3) Clearly a ctakes issue=0A= =0A= Tim=0A=