[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.pde] how to access a file in Plugin at runtime

Hi everyone,

I have a question about "how to resolve a relative path for a file in the plugin".

the situation looks like the following:
I have a ontology file ont.owl in my Plugin P1. Now in some class of P1, in order to access ont.owl, I used absolute paths. But this Path is different on others' machine. And absolute path became problematic.



So my question: How can I access this ont.owl inside P1, using a relative path, so that later, when the plugin gets exported, no "FileNotFoundException" would be thrown.


any idea how to achieve this?

best regards!
Jinhui