Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 2756 invoked from network); 24 Apr 2010 19:31:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Apr 2010 19:31:16 -0000 Received: (qmail 59296 invoked by uid 500); 24 Apr 2010 19:31:15 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 59243 invoked by uid 500); 24 Apr 2010 19:31:15 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 59235 invoked by uid 99); 24 Apr 2010 19:31:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Apr 2010 19:31:15 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tong.fin2@gmail.com designates 74.125.83.47 as permitted sender) Received: from [74.125.83.47] (HELO mail-gw0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Apr 2010 19:31:08 +0000 Received: by gwb17 with SMTP id 17so4710311gwb.6 for ; Sat, 24 Apr 2010 12:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=8lykbeJ2wq+TcW+3t8IxgPEBa/zIRKVNiKmULYkoZKc=; b=kVI0KJQg6lZk8A6ws2MOYmoqep4EGTOHSbrCvaErc3qCbTMhzF4BnhX8LaFJe9g7RC 0ZmDbX5A6m1T99TLCrMBCqhBze6GjIBui6TeYx1bZGmJVGDgpdMDJB3IecvJAVjDwKzn TSsVTFhI+Yl9OluSaAYKQKbn5oY0Mzio3U/lc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mUFtC+cCLwtm3HPC5mdSBdDys/FXRJi8OezbV9AXQnmvltJa8EJ5vSJjCoZtVBelex csKg0Ibz/AjqAzfi50vpXqNN1J5d+tCZwiJIHlr41I7duKARF24ygE8isqFlzIrVypU+ x2lWQv9XeBWoyxdAYLq2aAE9FUtAil4p/ttXc= MIME-Version: 1.0 Received: by 10.150.208.19 with SMTP id f19mr1721752ybg.208.1272137447699; Sat, 24 Apr 2010 12:30:47 -0700 (PDT) Received: by 10.151.84.15 with HTTP; Sat, 24 Apr 2010 12:30:47 -0700 (PDT) In-Reply-To: References: Date: Sat, 24 Apr 2010 15:30:47 -0400 Message-ID: Subject: Re: ResourceAccessException by using getResourceFilePath in Eclipse Plug-In From: Tong Fin To: user@uima.apache.org Content-Type: multipart/alternative; boundary=000e0cdf0f1ead2bc804850094e4 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cdf0f1ead2bc804850094e4 Content-Type: text/plain; charset=ISO-8859-1 Kai, Here is another hint to try: Do you try to print to the console the full file path of "resource". It is possible that Eclipse tries to find the file in the "current directory" that is at somewhere that you never expect it to be. -- Tong On Sat, Apr 24, 2010 at 12:26 PM, Kai Schlamp wrote: > > Kai, > > Is your plugin a compressed jar (like com.myconpany.myplugin.jar) or a > > folder ? > > If the plugin is a jar and you try to read a file from the path, it might > > not work. > > Thanks for the hint, Tong. I run it directly from the Eclipse IDE. The > resource > file is in a resource folder. The resource folder is on the top level of > the > Plug-In project and added to the classpath. So it is a folder (and not > packaged > yet). > > I am looking for a way to design my UIMA Analysis Engines so that they run > as > part of Eclipse Plug-Ins (better to say as part of an Eclipse RCP > application) > and with non Eclipse UIMA applications. > But those classpath things seems to make it quite hard when using external > resources. > > Regards, > Kai > > > > > --000e0cdf0f1ead2bc804850094e4--