[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] How to access files within a jar ?

I have tried to access to a file within my plugin in Eclipse by using String mainPath = getBundle().getLocation() + "fileName" and it works.

However when I deployed my product, I notice my getBundle().getLocation() returns to a path of a jar file.

1. How can I access the file within the jar ? Or should I enable the unpack option for the particular plug-in ?

2. How to get the absolute path of the file within plug-in ?