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 15:47:33 GMT
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.

-- Tong

On Sat, Apr 24, 2010 at 6:56 AM, Kai Schlamp <schlamp@gmx.de> wrote:

> Hello.
>
> I already asked a similiar question about a year ago. But I never solved
> that
> problem. Maybe there is a solution in the meantime or just did overlook
> something at that time.
>
> My UIMA analysis engine can also be run inside the Eclipse environment as
> an
> Eclipse Plug-in. The problem is that I have to get the absolute path of
> some
> resource (for an integrated third party library).
>
> This is works correctly, but I don't need a stream:
> getContext().getResourceAsStream("resource")
>
> But this doesn't work (throws an ResourceAccessException):
> getContext().getResourceFilePath("resource")
>
> And yes ... I already use: Eclipse-RegisterBuddy: org.apache.uima.runtime
> and "resource" is on the classpath (that is why the first method call
> works).
>
> Any suggestions?
>
> Regards,
> Kai
>
>

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