uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tong Fin <tong.f...@gmail.com>
Subject Re: ResourceAccessException by using getResourceFilePath in Eclipse Plug-In
Date Sat, 24 Apr 2010 19:30:47 GMT
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 <schlamp@gmx.de> 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
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message